1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
package; import core.MenuState; import flixel.FlxG; import flixel.FlxState; class PlayState extends FlxState { override public function create() { super.create(); FlxG.switchState(new MenuState()); } override public function update(dt:Float) { super.update(dt); } }