예제 #1
0
 public static void Action()
 {
     if (cursorx == (Console.WindowWidth / 2) - 8)
     {
         Console.Clear();
         SnakeGame.Start();
     }
     else if (cursorx == (Console.WindowWidth / 2) + 4)
     {
         Console.Clear();
     }
 }
예제 #2
0
파일: Main_Menu.cs 프로젝트: Pa3ckP7/Snake
 public static void Action()
 {
     if (cursory == (Console.WindowHeight / 2) - 8)
     {
         Console.Clear();
         SnakeGame.Start();
     }
     else if (cursory == (Console.WindowHeight / 2) - 7)
     {
         Console.Clear();
         SnakeGame2P.Start();
     }
     else if (cursory == (Console.WindowHeight / 2) - 6)
     {
         Program.Quit = true;
     }
 }
예제 #3
0
 private void ShowGameFieldStart()
 {
     game.Start();
     ShowGameField();
 }