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
Mostra file Open project: mahmoudbahaa/XNA-Game-project Class Usage Examples

Public Properties

Property Type Description
Difficulty Constants.Difficulties
continueEnabled bool

Public Methods

Method 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 method

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

StartScreen() public method

public StartScreen ( MyGame game ) : System
game MyGame
return System

Update() public method

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

Property Details

Difficulty public_oe static_oe property

public static Constants.Difficulties Difficulty
return Constants.Difficulties

continueEnabled public_oe static_oe property

public static bool continueEnabled
return bool