예제 #1
0
 public void Start()
 {
     Thread.Sleep(_counter);
     _main.IsLocked = true;
     _input.Redraw(_main);
     Thread.Sleep(_main.GetRoundTime());
     _main.IsLocked = false;
     Restart();
 }
예제 #2
0
 public void Start()
 {
     while (true)
     {
         Thread.Sleep(_timeLeft);
         if (GameOver())
         {
             _input.DrawGameOver(_main);
         }
         SpawnRandomCart();
         SlowDownTime();
         CheckToSpawnShip();
         MoveAllShips();
         MoveAllCarts();
         _input.Redraw(_main);
     }
 }