Method | Description | |
---|---|---|
FlxGame ( |
FlxGame constructor takes in the initial state and resolution of the screen.
|
Method | Description | |
---|---|---|
Draw ( |
Draw everything - mainly the state and all of its objects.
|
|
Initialize ( ) : void |
Required XNA initialization along with some FlxG initializations.
|
|
Update ( |
Update FlxG which updates important mechanics such as cameras and time elapsed.
|
protected Draw ( |
||
gameTime | ||
return | void |
public FlxGame ( |
||
State | The state you want to load | |
Width | int | The width of the screen |
Height | int | The height of the screen |
Zoom | float | |
ContentRootDirectory | string | The directory of your content. It is set automatically by default but you can change it if you want to. |
return | System |
protected Update ( |
||
gameTime | ||
return | void |