2016-10-03 20:43:09 -04:00
|
|
|
package;
|
|
|
|
|
2016-10-07 07:19:05 -04:00
|
|
|
import flixel.FlxG;
|
2016-10-03 20:43:09 -04:00
|
|
|
import flixel.FlxGame;
|
2016-10-07 07:19:05 -04:00
|
|
|
import flixel.util.FlxSave;
|
2016-10-03 20:43:09 -04:00
|
|
|
import openfl.display.Sprite;
|
|
|
|
|
|
|
|
class Main extends Sprite
|
|
|
|
{
|
2016-10-09 05:33:29 -04:00
|
|
|
// 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()
|
|
|
|
{
|
2016-10-07 07:19:05 -04:00
|
|
|
// SAVE BEGIN
|
|
|
|
var _save = new FlxSave();
|
|
|
|
_save.bind("Pet.GB");
|
|
|
|
|
2016-10-03 20:43:09 -04:00
|
|
|
super();
|
2016-10-11 00:26:52 -04:00
|
|
|
addChild(new FlxGame(0, 0, MenuState, 1, 60, 60, true, false));
|
2016-10-07 07:19:05 -04:00
|
|
|
|
2016-10-11 00:26:52 -04:00
|
|
|
// Loads Settings
|
|
|
|
if (_save.data.gameMuted = true)
|
|
|
|
FlxG.sound.muted = _save.data.muted;
|
|
|
|
if (_save.data.arrowInput == null)
|
|
|
|
_save.data.arrowInput = true;
|
2016-10-07 07:19:05 -04:00
|
|
|
|
|
|
|
// SAVE END
|
|
|
|
_save.close();
|
2016-10-03 20:43:09 -04:00
|
|
|
}
|
|
|
|
}
|