class FlxGame
package flixel
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,
after that FlxG
and FlxState
have all the useful stuff you actually need.
Constructor
new(gameWidth:Int = 0, gameHeight:Int = 0, ?initialState:InitialState, updateFramerate:Int = 60, drawFramerate:Int = 60, skipSplash:Bool = false, startFullscreen:Bool = false)
Instantiate a new game object.
Parameters:
gameWidth | The width of your game in pixels. If |
---|---|
gameHeight | The height of your game in pixels. If |
initialState | A constructor for the initial state, ex: |
updateFramerate | How frequently the game should update. Default is 60 fps. |
drawFramerate | Sets the actual display / draw framerate for the game. Default is 60 fps. |
skipSplash | Whether you want to skip the flixel splash screen with |
startFullscreen | Whether to start the game in fullscreen mode (desktop targets only). |
See also: