From 12c565cbb7208b44bd7654289bbac2824901f118 Mon Sep 17 00:00:00 2001 From: aldrikboy Date: Tue, 19 Dec 2017 17:20:23 +0100 Subject: ye --- Penguloon/Levels/IceLevel.cs | 6 +++--- Penguloon/Levels/Map.cs | 36 ++++++++++++++++++++++++++++++++++++ Penguloon/Levels/WaveManager.cs | 10 +++++++--- 3 files changed, 46 insertions(+), 6 deletions(-) (limited to 'Penguloon/Levels') diff --git a/Penguloon/Levels/IceLevel.cs b/Penguloon/Levels/IceLevel.cs index 20e3b58..d9be5bb 100644 --- a/Penguloon/Levels/IceLevel.cs +++ b/Penguloon/Levels/IceLevel.cs @@ -64,9 +64,9 @@ namespace Penguloon.Levels { OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO }, }; - //Map.Objects.Add(new PenguinObject(new Vector2(0, 0), Map)); - //Map.Objects.Add(new PenguinObject(new Vector2(Map.TileWidth * 2, Map.TileHeight * 4), Map)); - Map.Objects.Add(new CannonObject(new Vector2(Map.TileWidth * 1, Map.TileHeight * 8), Map)); + Map.Objects.Add(new GoldPenguinObject(new Vector2(0, 0), Map)); + Map.Objects.Add(new GoldPenguinObject(new Vector2(Map.TileWidth * 2, Map.TileHeight * 4), Map)); + Map.Objects.Add(new GoldPenguinObject(new Vector2(Map.TileWidth * 1, Map.TileHeight * 8), Map)); } } } \ No newline at end of file diff --git a/Penguloon/Levels/Map.cs b/Penguloon/Levels/Map.cs index 05d1669..5248a25 100644 --- a/Penguloon/Levels/Map.cs +++ b/Penguloon/Levels/Map.cs @@ -122,6 +122,42 @@ namespace Penguloon.Levels b.Position = pos; b.TargetPosition = target; Enemies.Insert(index, b); } + if (type == typeof(YellowBalloon)) + { + var b = new YellowBalloon(this); + b.Position = pos; b.TargetPosition = target; + Enemies.Insert(index, b); + } + if (type == typeof(GreenBalloon)) + { + var b = new GreenBalloon(this); + b.Position = pos; b.TargetPosition = target; + Enemies.Insert(index, b); + } + if (type == typeof(OrangeBalloon)) + { + var b = new OrangeBalloon(this); + b.Position = pos; b.TargetPosition = target; + Enemies.Insert(index, b); + } + if (type == typeof(PurpleBalloon)) + { + var b = new PurpleBalloon(this); + b.Position = pos; b.TargetPosition = target; + Enemies.Insert(index, b); + } + if (type == typeof(RainbowBalloon)) + { + var b = new RainbowBalloon(this); + b.Position = pos; b.TargetPosition = target; + Enemies.Insert(index, b); + } + if (type == typeof(DarkRainbowBalloon)) + { + var b = new DarkRainbowBalloon(this); + b.Position = pos; b.TargetPosition = target; + Enemies.Insert(index, b); + } } } diff --git a/Penguloon/Levels/WaveManager.cs b/Penguloon/Levels/WaveManager.cs index bb738fb..022b5d2 100644 --- a/Penguloon/Levels/WaveManager.cs +++ b/Penguloon/Levels/WaveManager.cs @@ -26,9 +26,13 @@ namespace Penguloon.Levels private void CreateWaves() { - Waves.Add(new Wave(new List>() { new Tuple(typeof(RedBalloon), 5) }, 500)); - Waves.Add(new Wave(new List>() { new Tuple(typeof(RedBalloon), 10) }, 500)); - Waves.Add(new Wave(new List>() { new Tuple(typeof(BlueBalloon), 5) }, 500)); + /* 1 */ Waves.Add(new Wave(new List>() { new Tuple(typeof(RedBalloon), 10) }, 500)); + /* 2 */ Waves.Add(new Wave(new List>() { new Tuple(typeof(RedBalloon), 25) }, 500)); + /* 3 */ Waves.Add(new Wave(new List>() { new Tuple(typeof(RedBalloon), 25), new Tuple(typeof(BlueBalloon), 7) }, 500)); + /* 4 */ Waves.Add(new Wave(new List>() { new Tuple(typeof(BlueBalloon), 25), new Tuple(typeof(BlueBalloon), 12) }, 500)); + /* 5 */ Waves.Add(new Wave(new List>() { new Tuple(typeof(BlueBalloon), 7), new Tuple(typeof(BlueBalloon), 20) }, 500)); + + } public void StartSpawningEnemies() -- cgit v1.2.3-70-g09d2