C# Class Platformer.PlatformerGame

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

Méthodes publiques

Méthode Description
PlatformerGame ( ) : System

Méthodes protégées

Méthode Description
Draw ( GameTime gameTime ) : void

Draws the game from background to foreground.

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
DrawHud ( ) : void
DrawShadowedString ( SpriteFont font, string value, Vector2 position, Color color ) : void
HandleInput ( ) : void
LoadStory ( ) : void

Loads a story file which lists all of the levels that should be preloaded.

Method Details

Draw() protected méthode

Draws the game from background to foreground.
protected Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
Résultat void

LoadContent() protected méthode

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

PlatformerGame() public méthode

public PlatformerGame ( ) : System
Résultat System

Update() protected méthode

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