1
0
mirror of https://github.com/Melon-Bread/Pet.GB synced 2024-11-28 13:58:20 -05:00
Pet.GB/source/Main.hx

32 lines
636 B
Haxe
Raw Normal View History

2016-10-03 20:43:09 -04:00
package;
import flixel.FlxG;
2016-10-03 20:43:09 -04:00
import flixel.FlxGame;
import flixel.util.FlxSave;
2016-10-03 20:43:09 -04:00
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
2016-10-03 20:43:09 -04:00
public function new()
{
// SAVE BEGIN
var _save = new FlxSave();
_save.bind("Pet.GB");
2016-10-03 20:43:09 -04:00
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();
2016-10-03 20:43:09 -04:00
}
}