C# 클래스 MrGravity.Menu_Code.Credits

파일 보기 프로젝트 열기: DizWARE/Mr-Gravity 1 사용 예제들

공개 메소드들

메소드 설명
Credits ( IControlScheme controlScheme, GraphicsDeviceManager graphics ) : System.Collections.Generic

Constructor for the credits screen. Sets up the list of names and categories to scrolll up

Draw ( GameTime gametime, SpriteBatch spriteBatch, Matrix scale ) : void

Draws the credits on screen

DrawLevel ( SpriteBatch spriteBatch, GameTime gameTime, Matrix scale ) : void
Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void

Loads the images and fonts needed for this screen

Update ( GameTime gametime, GameStates &states ) : void

Update process of this screen. Moves the credits up one pixel

비공개 메소드들

메소드 설명
GetTextXLocation ( string text, bool header ) : int

Gets the x location of the text so that is exactly center for the string that is given

메소드 상세

Credits() 공개 메소드

Constructor for the credits screen. Sets up the list of names and categories to scrolll up
public Credits ( IControlScheme controlScheme, GraphicsDeviceManager graphics ) : System.Collections.Generic
controlScheme IControlScheme Player's method of control
graphics GraphicsDeviceManager Graphics Manager for the game
리턴 System.Collections.Generic

Draw() 공개 메소드

Draws the credits on screen
public Draw ( GameTime gametime, SpriteBatch spriteBatch, Matrix scale ) : void
gametime Microsoft.Xna.Framework.GameTime Curent gametime(unnecessary)
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch Canvas the screen is drawing on
scale Microsoft.Xna.Framework.Matrix Not sure yet :)
리턴 void

DrawLevel() 공개 메소드

public DrawLevel ( SpriteBatch spriteBatch, GameTime gameTime, Matrix scale ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
gameTime Microsoft.Xna.Framework.GameTime
scale Microsoft.Xna.Framework.Matrix
리턴 void

Load() 공개 메소드

Loads the images and fonts needed for this screen
public Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager Content manager this game is using
리턴 void

Update() 공개 메소드

Update process of this screen. Moves the credits up one pixel
public Update ( GameTime gametime, GameStates &states ) : void
gametime Microsoft.Xna.Framework.GameTime Curent gametime(unnecessary)
states GameStates State of the current game
리턴 void