C# 클래스 FlyingBird.MainGame

상속: Sharpex2D.Game
파일 보기 프로젝트 열기: ThuCommix/Sharpex2D

공개 메소드들

메소드 설명
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