C# Class MrGravity.Menu_Code.Credits

ファイルを表示 Open project: DizWARE/Mr-Gravity Class Usage Examples

Public Methods

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

Private Methods

Method Description
GetTextXLocation ( string text, bool header ) : int

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

Method Details

Credits() public method

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
return System.Collections.Generic

Draw() public method

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 :)
return void

DrawLevel() public method

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
return void

Load() public method

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
return void

Update() public method

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
return void