public static void Init(GameEngine engine) { PlayerShip ship = new PlayerShip(new Coordinates(MAX_ROWS / 2 - 1, MAX_COLS - 2)); engine.AddObject(new Enemies.Bomber(new Coordinates(2, 8), new Coordinates(1, 0))); engine.AddObject(new Enemies.Charger(new Coordinates(8, 8), new Coordinates(1, 0))); engine.AddObject(new Enemies.Horrific(new Coordinates(12, 8), new Coordinates(-1, 0))); engine.AddObject(new Enemies.Sinister(new Coordinates(17, 8), new Coordinates(1, 0))); engine.AddObject(new Enemies.SuperBoss(new Coordinates(1, 2), new Coordinates(1, 0))); engine.AddObject(new Enemies.Horrific(new Coordinates(15, 11), new Coordinates(1, 0))); engine.AddObject(new Enemies.Bomber(new Coordinates(2, 11), new Coordinates(1, 0))); engine.AddObject(ship); CreateWalls(engine); }
private void AddShip(GameObject obj) { this.playerShip = obj as PlayerShip; this.allObjects.RemoveAll(x => x is PlayerShip); this.AddMovingObject(obj); }