示例#1
0
 public static void Action()
 {
     if (cursorx == (Console.WindowWidth / 2) - 14)
     {
         Console.Clear();
         SnakeGame2P.Start();
     }
     else if (cursorx == (Console.WindowWidth / 2))
     {
         Console.Clear();
     }
 }
示例#2
0
 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;
     }
 }