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