C# Class FlyingBird.MainGame

Inheritance: Sharpex2D.Game
Exibir arquivo Open project: ThuCommix/Sharpex2D

Public Methods

Method 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

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

Initializes the game.
public OnInitialize ( LaunchParameters launchParameters ) : EngineConfiguration
launchParameters Sharpex2D.GameService.LaunchParameters The LaunchParameters.
return Sharpex2D.EngineConfiguration

OnLoadContent() public method

Loads the content.
public OnLoadContent ( ) : void
return void

OnRendering() public method

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

OnUpdate() public method

Updates the game.
public OnUpdate ( GameTime gameTime ) : void
gameTime Sharpex2D.GameTime The GameTime.
return void