C# Class Game.HopnetGame

This is the main type for your game
Inheritance: Microsoft.Xna.Framework.Game
Mostrar archivo Open project: soltys/hopnet Class Usage Examples

Public Methods

Method Description
HopnetGame ( ) : System

Protected Methods

Method Description
Draw ( GameTime gameTime ) : void

This is called when the game should draw itself.

Initialize ( ) : void

Allows the game to perform any initialization it needs to before starting to run. This is where it can query for any required services and load any non-graphic related content. Calling base. Initialize will enumerate through any components and initialize them as well.

LoadContent ( ) : void
UnloadContent ( ) : void

UnloadContent will be called once per game and is the place to unload all content.

Update ( GameTime gameTime ) : void

Private Methods

Method Description
CreatePlatforms ( int platformCount, float firstPlatformPosition, float distanceBetweenPlatforms, float zDistance, bool platformSettings ) : void
DrawBackground ( SpriteBatch spriteBatch ) : void
KinectAllFramesReady ( object sender, AllFramesReadyEventArgs imageFrames ) : void
LoadConfigFile ( ) : void

LoadContent will be called once per game and is the place to load all of your content.

MovePlatforms ( ) : void
NewGameSettingsReset ( ) : void
PreparePlatformsForNewGame ( ) : void
RemovePlatformsAtEnd ( ) : void
RotatePlatforms ( ) : void

Method Details

Draw() protected method

This is called when the game should draw itself.
protected Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
return void

HopnetGame() public method

public HopnetGame ( ) : System
return System

Initialize() protected method

Allows the game to perform any initialization it needs to before starting to run. This is where it can query for any required services and load any non-graphic related content. Calling base. Initialize will enumerate through any components and initialize them as well.
protected Initialize ( ) : void
return void

LoadContent() protected method

protected LoadContent ( ) : void
return void

UnloadContent() protected method

UnloadContent will be called once per game and is the place to unload all content.
protected UnloadContent ( ) : void
return void

Update() protected method

protected Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void