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