Méthode | Description | |
---|---|---|
Character ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System | ||
Draw ( |
Draws the character onto the screen
|
|
KeyInput ( ) : void |
The KeyInput method handles all keyboard input for the character.
|
|
Move ( ) : void |
Handles the actual movement of the character, and animation thereof
|
Méthode | Description | |
---|---|---|
CheckCollision ( |
||
SlowDown ( int i ) : void |
Gradually slows the character down if the character stops running
|
public Character ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System | ||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
Résultat | System |
public Draw ( |
||
spriteBatch | The SpriteBatch to use to render this sprite | |
Résultat | void |