C# Класс FlyingBird.MainGame

Наследование: Sharpex2D.Game
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

OnInitialize() публичный Метод

Initializes the game.
public OnInitialize ( LaunchParameters launchParameters ) : EngineConfiguration
launchParameters Sharpex2D.GameService.LaunchParameters The LaunchParameters.
Результат Sharpex2D.EngineConfiguration

OnLoadContent() публичный Метод

Loads the content.
public OnLoadContent ( ) : void
Результат void

OnRendering() публичный Метод

Renders the game.
public OnRendering ( RenderDevice renderer, GameTime gameTime ) : void
renderer RenderDevice The Renderer.
gameTime Sharpex2D.GameTime The GameTime.
Результат void

OnUpdate() публичный Метод

Updates the game.
public OnUpdate ( GameTime gameTime ) : void
gameTime Sharpex2D.GameTime The GameTime.
Результат void