예제 #1
0
 public void Update(double elapsedTime, Snake snake)
 {
 }
예제 #2
0
 public UpState(Snake snake)
 {
     snake.velocity = new Vector2(0, -1*snake.speed);
 }
예제 #3
0
 public void Draw(Snake snake, SpriteBatch spriteBatch)
 {
 }
예제 #4
0
 public StartState(Snake snake)
 {
 }
예제 #5
0
 public RightState(Snake snake)
 {
     snake.velocity = new Vector2(snake.speed, 0);
 }
예제 #6
0
 public LeftState(Snake snake)
 {
     snake.velocity = new Vector2(-1*snake.speed, 0);
 }
예제 #7
0
 public DownState(Snake snake)
 {
     snake.velocity = new Vector2(0,snake.speed);
 }
예제 #8
0
 public DeadState(Snake snake)
 {
     snake.velocity = new Vector2(0, 0);
 }