//TODO: add more levels public static void LoadCredits(ContentManager manager) { Texture2D levelTexture = manager.Load<Texture2D>("scene/credits"); CurrentLevel = new GameLevel( new Texture2D[] { levelTexture }, new Texture2D[] { levelTexture }, manager.Load<Song>("credits_theme")); }
private static void LoadLevel1(ContentManager manager, bool hasBatman) { Texture2D levelTexture = manager.Load<Texture2D>("Level1/level1"); Texture2D map0Texture = manager.Load<Texture2D>("Level1/map0"); Texture2D mapTexture = manager.Load<Texture2D>("Level1/map"); CurrentLevel = new GameLevel( new Texture2D[] { levelTexture, levelTexture }, new Texture2D[] { map0Texture, mapTexture }, manager.Load<Song>("music")); CurrentLevel.InteractionObjects.Add(new AxeElement(1600, 300)); CurrentLevel.InteractionObjects.Add(new AxeElement(7800, 593)); CurrentLevel.InteractionObjects.Add(new FireSmokeElement(4000, 400)); CurrentLevel.InteractionObjects.Add(new FireSmokeElement(5711, 400)); if (hasBatman) { CurrentLevel.InteractionObjects.Add(new BatmanElement(530, 469, 700)); } CurrentLevel.LoadCoints(); }
private static void LoadLevel2(ContentManager manager, bool hasBatman) { Texture2D map0Texture = manager.Load<Texture2D>("Level2/map0"); Texture2D map1Texture = manager.Load<Texture2D>("Level2/map1"); Texture2D level0Texture = manager.Load<Texture2D>("Level2/level0"); Texture2D level1Texture = manager.Load<Texture2D>("Level2/level1"); CurrentLevel = new GameLevel( new Texture2D[] { level0Texture, level1Texture}, new Texture2D[] { map0Texture, map1Texture }, manager.Load<Song>("music")); CurrentLevel.InteractionObjects.Add(new AxeElement(1590, 140)); CurrentLevel.InteractionObjects.Add(new AxeElement(6755, 455)); CurrentLevel.InteractionObjects.Add(new AxeElement(4533, 115)); CurrentLevel.InteractionObjects.Add(new FireSmokeElement(4000, 450)); CurrentLevel.InteractionObjects.Add(new FireSmokeElement(5741, 400)); CurrentLevel.InteractionObjects.Add(new FireSmokeElement(1640, 430)); if (hasBatman) { CurrentLevel.InteractionObjects.Add(new BatmanElement(290, 320, 500)); } CurrentLevel.LoadCoints(); }
private static void LoadLevel3(ContentManager manager, bool hasBatman) { Texture2D map0Texture = manager.Load<Texture2D>("Level3/map0"); Texture2D map1Texture = manager.Load<Texture2D>("Level3/map1"); Texture2D level0Texture = manager.Load<Texture2D>("Level3/level0"); Texture2D level1Texture = manager.Load<Texture2D>("Level3/level1"); CurrentLevel = new GameLevel( new Texture2D[] { level0Texture, level1Texture }, new Texture2D[] { map0Texture, map1Texture }, manager.Load<Song>("music")); CurrentLevel.InteractionObjects.Add(new AxeElement(1650, 150)); CurrentLevel.InteractionObjects.Add(new AxeElement(1650, 450)); CurrentLevel.InteractionObjects.Add(new AxeElement(6440, 290)); CurrentLevel.InteractionObjects.Add(new FireSmokeElement(780, 113)); CurrentLevel.InteractionObjects.Add(new FireSmokeElement(6925, 300)); if (hasBatman) { CurrentLevel.InteractionObjects.Add(new BatmanElement(530, 469, 700)); } CurrentLevel.LoadCoints(); }