Méthode | Description | |
---|---|---|
Advance ( |
||
Draw ( |
Draws the animated player.
|
|
Engarde ( ) : void | ||
Engarde ( Enumeration priority, System |
||
HandleCollisionsNew ( ) : void | ||
Ready ( ) : void | ||
Ready ( Enumeration priority, System |
||
Reset ( Vector2 position, SpriteEffects spriteEffect ) : void |
Resets the player to life.
|
|
Serpent ( |
Constructors a new player.
|
|
SerpentEngarde ( ) : void | ||
SerpentEngarde ( Enumeration priority, System |
||
Stand ( ) : void | ||
Stand ( Enumeration priority ) : void | ||
Stand ( Enumeration priority, System |
||
Stand ( bool stoppable ) : void | ||
Update ( |
Handles input, performs physics, and animates the player sprite. We pass in all of the input states so that our game is only polling the hardware once per frame. We also pass the game's orientation because when using the accelerometer, we need to reverse our motion when the orientation is in the LandscapeRight orientation. |
Méthode | Description | |
---|---|---|
LoadContent ( ) : void |
public Advance ( |
||
position__1 | ||
flip | SpriteEffects | |
Résultat | void |
public Draw ( |
||
gameTime | ||
spriteBatch | ||
Résultat | void |
public Engarde ( Enumeration priority, System |
||
priority | Enumeration | |
stoppable | System |
|
Résultat | void |
public Ready ( Enumeration priority, System |
||
priority | Enumeration | |
stoppable | System |
|
Résultat | void |
public Reset ( Vector2 position, SpriteEffects spriteEffect ) : void | ||
position | Vector2 | The position to come to life at. |
spriteEffect | SpriteEffects | |
Résultat | void |
public Serpent ( |
||
room | ||
position | Vector2 | |
GraphicsDevice__1 | GraphicsDevice | |
spriteEffect | SpriteEffects | |
Résultat | System |
public SerpentEngarde ( Enumeration priority, System |
||
priority | Enumeration | |
stoppable | System |
|
Résultat | void |
public Stand ( Enumeration priority ) : void | ||
priority | Enumeration | |
Résultat | void |
public Stand ( Enumeration priority, System |
||
priority | Enumeration | |
stoppable | System |
|
Résultat | void |
public Update ( |
||
gameTime | ||
keyboardState | ||
gamePadState | ||
touchState | TouchCollection | |
accelState | AccelerometerState | |
orientation | DisplayOrientation | |
Résultat | void |