예제 #1
0
 public HudWave(Game1 game, Hud hud, HudAttackDisplayer displayer, Vector2 pos, Wave wave)
 {
     this.hud = hud;
     this.displayer = displayer;
     font = hud.font;
     this.wave = wave;
     setPictures(wave.enemyType);
     this.pos = pos;
     goalPos = pos;
     flashing = true;
     firstInList = false;
     moving = false;
     this.game = game;
     targ1 = new RenderTarget2D(game.GraphicsDevice, 170, 89);
     targ2 = new RenderTarget2D(game.GraphicsDevice, 170, 89);
     sb = new SpriteBatch(game.GraphicsDevice);
     alphaMap = TextureManager.alphaMap;
 }
예제 #2
0
 void changeWaves()
 {
     if (currentWaveNumber < inAttack-1)
     {
         //spawnState = Utilities.SpawnState.waiting;
         //game.hud.hudAttackDisplayer.endAttackMessage();
         //waitTime = 15; // 20 seconds between waves
         currentWaveNumber++;
         activeWave = waves[currentWaveNumber];
     }
 }