Method | Description | |
---|---|---|
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
|
Method | Description | |
---|---|---|
CheckCollision ( |
||
SlowDown ( int i ) : void |
Gradually slows the character down if the character stops running
|
public Draw ( |
||
spriteBatch | The SpriteBatch to use to render this sprite | |
texture | Microsoft.Xna.Framework.Graphics.Texture2D | The character's texture sheet (this should really be local to the class...) |
return | void |