C# Class fliXNA_xbox.FlxGame

Inheritance: Microsoft.Xna.Framework.Game
Afficher le fichier Open project: bpercevic/flixel-XNA Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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

FlxGame() public méthode

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.
Résultat System

Initialize() protected méthode

Required XNA initialization along with some FlxG initializations.
protected Initialize ( ) : void
Résultat void

Update() protected méthode

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