public EnemyBaseManager(Game game) : base(game) { enemyBases = new List <EnemyBase>(); enemyBasesToBeDestroyed = new List <EnemyBase>(); explosionManager = new ExplosionManager(game, "bigsplode"); Game.Components.Add(this); }
public Level(Game game) : base(game) { this.ship = new Ship(game); this.enemyManager = new EnemyManager(game); this.enemyBaseManager = new EnemyBaseManager(game); this.explosionManager = new ExplosionManager(game); this.asteroidManager = new AsteroidManager(game); this.boundary = new Boundary(game); this.scoreKeeper = new MGLib.ScoreKeeper(game, "VICTORY!", "You are defeated...", "font", "shipLife"); this.minimap = new Minimap(game); this.spawnCounter = 300; this.currentState = LevelState.Alive; this.deathCounter = 0; this.returnCounter = 0; Game.Components.Add(this); }