コード例 #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();
 }