1
0
mirror of https://github.com/Melon-Bread/Pet.GB synced 2024-11-24 20:58:19 -05:00
Pet.GB/source/Main.hx
Rain Clark 8668adb43a Final push before submit
Sorry for not breaking down commits
2016-10-11 00:26:52 -04:00

32 lines
636 B
Haxe

package;
import flixel.FlxG;
import flixel.FlxGame;
import flixel.util.FlxSave;
import openfl.display.Sprite;
class Main extends Sprite
{
// TODO: Add END_GAME Flags
// TODO: Makes saving work for at least the config screen
// TODO: Make Game Over screen
public function new()
{
// SAVE BEGIN
var _save = new FlxSave();
_save.bind("Pet.GB");
super();
addChild(new FlxGame(0, 0, MenuState, 1, 60, 60, true, false));
// Loads Settings
if (_save.data.gameMuted = true)
FlxG.sound.muted = _save.data.muted;
if (_save.data.arrowInput == null)
_save.data.arrowInput = true;
// SAVE END
_save.close();
}
}