C# Class Game.HopnetGame

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

Méthodes publiques

Méthode Description
HopnetGame ( ) : System

Méthodes protégées

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

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

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

HopnetGame() public méthode

public HopnetGame ( ) : System
Résultat System

Initialize() protected méthode

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
Résultat void

LoadContent() protected méthode

protected LoadContent ( ) : void
Résultat void

UnloadContent() protected méthode

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

Update() protected méthode

protected Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void