C# Class fliXNA_xbox.FlxGame

Inheritance: Microsoft.Xna.Framework.Game
显示文件 Open project: bpercevic/flixel-XNA Class Usage Examples

Public Methods

Method Description
FlxGame ( FlxState State, int Width = 1280, int Height = 720, float Zoom = 1.0f, string ContentRootDirectory = "Content" ) : System

FlxGame constructor takes in the initial state and resolution of the screen.

Protected Methods

Method Description
Draw ( GameTime gameTime ) : void

Draw everything - mainly the state and all of its objects.

Initialize ( ) : void

Required XNA initialization along with some FlxG initializations.

Update ( GameTime gameTime ) : void

Update FlxG which updates important mechanics such as cameras and time elapsed.

Method Details

Draw() protected method

Draw everything - mainly the state and all of its objects.
protected Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

FlxGame() public method

FlxGame constructor takes in the initial state and resolution of the screen.
public FlxGame ( FlxState State, int Width = 1280, int Height = 720, float Zoom = 1.0f, string ContentRootDirectory = "Content" ) : System
State FlxState 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

Initialize() protected method

Required XNA initialization along with some FlxG initializations.
protected Initialize ( ) : void
return void

Update() protected method

Update FlxG which updates important mechanics such as cameras and time elapsed.
protected Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void