C# 클래스 PlatformTest.Character

파일 보기 프로젝트 열기: zmthy/play-dead

공개 메소드들

메소드 설명
Draw ( SpriteBatch spriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void

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

비공개 메소드들

메소드 설명
CheckCollision ( Rectangle bounds ) : bool
SlowDown ( int i ) : void

Gradually slows the character down if the character stops running

메소드 상세

Draw() 공개 메소드

Draws the character onto the screen
public Draw ( SpriteBatch spriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.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...)
리턴 void

KeyInput() 공개 메소드

The KeyInput method handles all keyboard input for the character.
public KeyInput ( ) : void
리턴 void

Move() 공개 메소드

Handles the actual movement of the character, and animation thereof
public Move ( ) : void
리턴 void