Property | Type | Description | |
---|---|---|---|
Position | Vector2 | ||
Speed | Vector2 | ||
airtime | int | ||
gameOver | bool |
Method | Description | |
---|---|---|
Draw ( |
Draws the player on the screen.
|
|
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.
|
|
PlayerObject ( Microsoft.Xna.Framework.Game game, |
Constructor initializes everything.
|
|
Update ( |
Allows the game component to update itself.
|
|
setActive ( ) : void | ||
setPosition ( Vector2 v ) : void |
Method | Description | |
---|---|---|
adjustSpeed ( int difference ) : void |
public Draw ( |
||
gameTime | ||
return | void |
public PlayerObject ( Microsoft.Xna.Framework.Game game, |
||
game | Microsoft.Xna.Framework.Game | |
givenSpriteBatch | ||
world | ||
return | System |
public Update ( |
||
gameTime | Provides a snapshot of timing values. | |
return | void |