Ejemplo n.º 1
0
        public WaveManager(Player player,Level level, int numberOfWaves)
        {
            this.numberOfWaves = numberOfWaves;
            this.level = level;
            this.player = player;
            for (int i = 0; i < numberOfWaves; i++)
            {
                int initialNumberOfEnemies = 1;
                int numberModifier = (i / 6) + 1;

                Wave wave = new Wave(player,i, initialNumberOfEnemies * numberModifier, level);
                waves.Enqueue(wave);
            }
        }
        public WaveManager(Level level, int numberOfWaves, Texture2D enemyTexture,Texture2D menutex)
        {
            this.numberOfWaves = numberOfWaves;
            this.enemyTexture = enemyTexture;
            this.level = level;

            for (int i = 0; i < numberOfWaves; i++)
            {
                int initialNumberOfEnemies = 5;
                int numberModifier = (i / 6) + 1;

                Wave wave = new Wave(8, initialNumberOfEnemies * numberModifier, level, enemyTexture);
                //trapmenu = new TrapMenu(menutex,new Vector2(-100,0),traptextures);
                waves.Enqueue(wave);
            }

            waves.Peek().Start();
        }