C# Class TugOfBaby.GameInstance

This is the main type for your game
Afficher le fichier Open project: martinvium/ngj2012 Class Usage Examples

Méthodes publiques

Méthode Description
Draw ( GameTime gameTime ) : void

This is called when the game should draw itself.

GameInstance ( GraphicsDeviceManager gfx, Microsoft.Xna.Framework.Content.ContentManager content, Game1 game ) : System
Initialize ( GraphicsDevice graphicsDevice ) : 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

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

Update ( GameTime gameTime ) : void

Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio.

Private Methods

Méthode Description
CreateBaby ( ) : void

Method Details

Draw() public méthode

This is called when the game should draw itself.
public Draw ( GameTime gameTime ) : void
gameTime GameTime Provides a snapshot of timing values.
Résultat void

GameInstance() public méthode

public GameInstance ( GraphicsDeviceManager gfx, Microsoft.Xna.Framework.Content.ContentManager content, Game1 game ) : System
gfx GraphicsDeviceManager
content Microsoft.Xna.Framework.Content.ContentManager
game Game1
Résultat System

Initialize() public 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.
public Initialize ( GraphicsDevice graphicsDevice ) : void
graphicsDevice GraphicsDevice
Résultat void

LoadContent() public méthode

LoadContent will be called once per game and is the place to load all of your content.
public LoadContent ( ) : void
Résultat void

Update() public méthode

Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio.
public Update ( GameTime gameTime ) : void
gameTime GameTime Provides a snapshot of timing values.
Résultat void