Ejemplo n.º 1
0
 private void MainTimer_Tick(object sender, EventArgs e)
 {
     if (snake.snakeIntersected())
     {
         GameOver();
     }
     snake.SnakeMove();
     SnakeFoodCollision();
     if (snake.BorderCollision(area))
     {
         GameOver();
     }
     snake.HeadAnimate();
     snake.TailAnimate();
     snake.BodyAnimate();
     snake.TurnAnimate();
     snake.Render(this);
     snake.turningJointsShifting();
 }