C# Class FlyingBird.MainGame

Inheritance: Sharpex2D.Game
Afficher le fichier Open project: ThuCommix/Sharpex2D

Méthodes publiques

Méthode Description
OnInitialize ( LaunchParameters launchParameters ) : EngineConfiguration

Initializes the game.

OnLoadContent ( ) : void

Loads the content.

OnRendering ( RenderDevice renderer, GameTime gameTime ) : void

Renders the game.

OnUpdate ( GameTime gameTime ) : void

Updates the game.

Private Methods

Méthode Description
DrawBackground ( RenderDevice renderer ) : void

Draws the background.

DrawInstructions ( RenderDevice renderer ) : void

Draws the Instructions.

DrawPipes ( RenderDevice renderer ) : void

Draws the pipes.

DrawPlayer ( RenderDevice renderer ) : void

Draws a player.

DrawRenderHint ( RenderDevice renderer ) : void

Draws the renderhint.

DrawScore ( RenderDevice renderer ) : void

Draws the score.

UpdateBackground ( GameTime gameTime ) : void

Updates the background.

UpdateCollision ( ) : void

Updates the collision.

UpdateInput ( ) : void

Updates the Input.

UpdateInstructions ( GameTime gameTime ) : void

Updates the Instructions.

UpdatePipes ( GameTime gameTime ) : void

Updates the Pipes.

UpdatePlayer ( GameTime gameTime ) : void

Updates the Player.

_pipeManager_ScoreChanged ( object sender, EventArgs e ) : void

ScoreChanged.

Method Details

OnInitialize() public méthode

Initializes the game.
public OnInitialize ( LaunchParameters launchParameters ) : EngineConfiguration
launchParameters Sharpex2D.GameService.LaunchParameters The LaunchParameters.
Résultat Sharpex2D.EngineConfiguration

OnLoadContent() public méthode

Loads the content.
public OnLoadContent ( ) : void
Résultat void

OnRendering() public méthode

Renders the game.
public OnRendering ( RenderDevice renderer, GameTime gameTime ) : void
renderer RenderDevice The Renderer.
gameTime Sharpex2D.GameTime The GameTime.
Résultat void

OnUpdate() public méthode

Updates the game.
public OnUpdate ( GameTime gameTime ) : void
gameTime Sharpex2D.GameTime The GameTime.
Résultat void