Пример #1
0
 void CheckWallColision()
 {
     if (wall.CheckIntersection(worm.body) == true)
     {
         worm.Clear();
         food.Clear();
         wall.Clear();
         Console.WriteLine("     ");
         Console.WriteLine("Game over");
         Environment.Exit(0);
     }
 }