Пример #1
0
 public void Update(GameTime gameTime, ref AsteroidBuilder asteroidField, ref DroneBuilder droneFleet)
 {
     _showdialog = false;
     _currentWave.Update(gameTime, ref asteroidField, ref droneFleet);
     if (_currentWave.ShipList.Count <= 0)
     {
         _time -= gameTime.ElapsedGameTime.Milliseconds;
         if (_time <= 0 && _waveCount < _max)
         {
             _waveCount++;
             _currentWave.UnLoadContent();
             _currentWave = new BoidWave(_waveCount);
             _currentWave.LoadContent();
             _time = _timeBetweenWaves;
         }
         else if (_waveCount >= _max)
         {
             HasEnded = true;
         }
     }
 }
Пример #2
0
 public void LoadContent()
 {
     _dialog = new Dialog(Global.GraphicsManager.GraphicsDevice.Viewport.Width - 400, Global.GraphicsManager.GraphicsDevice.Viewport.Height - 50, 25, 380, 8, false, true);
     _currentWave.LoadContent();
     _dialog.LoadContent();
 }