public void start() { if (GameState == EGameState.GameOver) { GameState = EGameState.Running; asteroids.Clear(); player = new SpaceShip(gameRules); timer.Start(); stopWatch.Restart(); lastUpdate = stopWatch.ElapsedMilliseconds; } }
public FrameEventArgs(SpaceShip player, List <Asteroid> asteroids, long seconds) { Player = player; Asteroids = new List <Asteroid>(asteroids); Seconds = seconds; }