diff options
Diffstat (limited to 'Penguloon/Levels')
| -rw-r--r-- | Penguloon/Levels/IceLevel.cs | 6 | ||||
| -rw-r--r-- | Penguloon/Levels/Map.cs | 36 | ||||
| -rw-r--r-- | Penguloon/Levels/WaveManager.cs | 10 |
3 files changed, 46 insertions, 6 deletions
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<Tuple<Type, int>>() { new Tuple<Type, int>(typeof(RedBalloon), 5) }, 500)); - Waves.Add(new Wave(new List<Tuple<Type, int>>() { new Tuple<Type, int>(typeof(RedBalloon), 10) }, 500)); - Waves.Add(new Wave(new List<Tuple<Type, int>>() { new Tuple<Type, int>(typeof(BlueBalloon), 5) }, 500)); + /* 1 */ Waves.Add(new Wave(new List<Tuple<Type, int>>() { new Tuple<Type, int>(typeof(RedBalloon), 10) }, 500)); + /* 2 */ Waves.Add(new Wave(new List<Tuple<Type, int>>() { new Tuple<Type, int>(typeof(RedBalloon), 25) }, 500)); + /* 3 */ Waves.Add(new Wave(new List<Tuple<Type, int>>() { new Tuple<Type, int>(typeof(RedBalloon), 25), new Tuple<Type, int>(typeof(BlueBalloon), 7) }, 500)); + /* 4 */ Waves.Add(new Wave(new List<Tuple<Type, int>>() { new Tuple<Type, int>(typeof(BlueBalloon), 25), new Tuple<Type, int>(typeof(BlueBalloon), 12) }, 500)); + /* 5 */ Waves.Add(new Wave(new List<Tuple<Type, int>>() { new Tuple<Type, int>(typeof(BlueBalloon), 7), new Tuple<Type, int>(typeof(BlueBalloon), 20) }, 500)); + + } public void StartSpawningEnemies() |
