C# Class MyGame.StartScreen

This class represent the Start(pause) Screen that show on startup and on pausing the game having options to start a new game,continue , go to help or credit screen or change the difficulty or exit
Inheritance: Screen
Afficher le fichier Open project: mahmoudbahaa/XNA-Game-project Class Usage Examples

Méthodes publiques

Свойство Type Description
Difficulty Constants.Difficulties
continueEnabled bool

Méthodes publiques

Méthode Description
Draw ( GameTime gameTime ) : void

This method renders the current state.

StartScreen ( MyGame game ) : System
Update ( GameTime gameTime ) : void

Allows the game component to update itself.

Method Details

Draw() public méthode

This method renders the current state.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime The elapsed game time.
Résultat void

StartScreen() public méthode

public StartScreen ( MyGame game ) : System
game MyGame
Résultat System

Update() public méthode

Allows the game component to update itself.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
Résultat void

Property Details

Difficulty public_oe static_oe property

public static Constants.Difficulties Difficulty
Résultat Constants.Difficulties

continueEnabled public_oe static_oe property

public static bool continueEnabled
Résultat bool