extends Sprite › DisplayObjectContainer › InteractiveObject › DisplayObject › EventDispatcher
FlxGame is the heart of all Flixel games, and contains a bunch of basic game loops and things.
It is a long and sloppy file that you shouldn't have to worry about too much!
It is basically only used to create your game object in the first place,
FlxState have all the useful stuff you actually need.
new(gameWidth:Int = 0, gameHeight:Int = 0, ?initialState:Class<FlxState>, updateFramerate:Int = 60, drawFramerate:Int = 60, skipSplash:Bool = false, startFullscreen:Bool = false)
Instantiate a new game object.
The width of your game in pixels. If
The height of your game in pixels. If
The class name of the state you want to create and switch to first (e.g.
How frequently the game should update. Default is 60 fps.
Sets the actual display / draw framerate for the game. Default is 60 fps.
Whether you want to skip the flixel splash screen with
Whether to start the game in fullscreen mode (desktop targets only).