메소드 | 설명 | |
---|---|---|
CheckKey ( Keys theKey ) : bool | ||
Draw ( |
|
|
Initialize ( ) : void |
Allows the game component to perform any initialization it needs to before starting to run. This is where it can query for any required services and load content.
|
|
MeasureMenu ( ) : void |
Measures the game menu screen and finds the center.
|
|
MenuComponent ( Microsoft.Xna.Framework.Game game, |
Main method to create all the components of this game screen.
|
|
Update ( |
Allows the game component to update itself.
|
public Draw ( |
||
gameTime | ||
리턴 | void |
public MenuComponent ( Microsoft.Xna.Framework.Game game, |
||
game | Microsoft.Xna.Framework.Game | |
spriteBatch | ||
spriteFont | ||
menuItems | string | |
리턴 | System |
public Update ( |
||
gameTime | Provides a snapshot of timing values. | |
리턴 | void |