예제 #1
0
 public void Draw()
 {
     Console.Clear();
     snake.Draw();
     food.Draw();
     wall.Draw();
 }
예제 #2
0
파일: Game.cs 프로젝트: kenenalmat/PT
 public void Draw()
 {
     food.Draw();
     snake.Draw();
     Console.SetCursorPosition(22, 31);
     Console.ForegroundColor = ConsoleColor.Cyan;
     Console.Write("Food: {0}, level: {1}", Game.snake.body.Count(), level);
     if (level == 1)
     {
         wall.Draw();
     }
 }