diff options
Diffstat (limited to 'Penguloon/Levels')
| -rw-r--r-- | Penguloon/Levels/Map.cs | 3 | ||||
| -rw-r--r-- | Penguloon/Levels/WaveManager.cs | 13 |
2 files changed, 10 insertions, 6 deletions
diff --git a/Penguloon/Levels/Map.cs b/Penguloon/Levels/Map.cs index c428e49..f05c8f5 100644 --- a/Penguloon/Levels/Map.cs +++ b/Penguloon/Levels/Map.cs @@ -159,8 +159,7 @@ namespace Penguloon.Levels public void Update(float deltaTime) { for (int i = 0; i < Enemies.Count; i++) - { - + { if (Enemies[i] != null) Enemies[i].Update(deltaTime); } diff --git a/Penguloon/Levels/WaveManager.cs b/Penguloon/Levels/WaveManager.cs index 96efa6d..510714c 100644 --- a/Penguloon/Levels/WaveManager.cs +++ b/Penguloon/Levels/WaveManager.cs @@ -46,12 +46,12 @@ namespace Penguloon.Levels /* 16 */ Waves.Add(new Wave(new List<Tuple<Type, int>>() { new Tuple<Type, int>(typeof(RainbowBalloon), 10) }, 500)); /* 17 */ Waves.Add(new Wave(new List<Tuple<Type, int>>() { new Tuple<Type, int>(typeof(RainbowBalloon), 25) }, 500)); - /* 18 */ Waves.Add(new Wave(new List<Tuple<Type, int>>() { new Tuple<Type, int>(typeof(RainbowBalloon), 25), new Tuple<Type, int>(typeof(DarkRainbowBalloon), 7) }, 500)); - /* 19 */ Waves.Add(new Wave(new List<Tuple<Type, int>>() { new Tuple<Type, int>(typeof(RainbowBalloon), 25), new Tuple<Type, int>(typeof(DarkRainbowBalloon), 12) }, 500)); - /* 20 */ Waves.Add(new Wave(new List<Tuple<Type, int>>() { new Tuple<Type, int>(typeof(RainbowBalloon), 7), new Tuple<Type, int>(typeof(DarkRainbowBalloon), 20) }, 500)); + /* 18 */ Waves.Add(new Wave(new List<Tuple<Type, int>>() { new Tuple<Type, int>(typeof(RainbowBalloon), 25), new Tuple<Type, int>(typeof(DarkRainbowBalloon), 7) }, 400)); + /* 19 */ Waves.Add(new Wave(new List<Tuple<Type, int>>() { new Tuple<Type, int>(typeof(RainbowBalloon), 25), new Tuple<Type, int>(typeof(DarkRainbowBalloon), 12) }, 400)); + /* 20 */ Waves.Add(new Wave(new List<Tuple<Type, int>>() { new Tuple<Type, int>(typeof(RainbowBalloon), 7), new Tuple<Type, int>(typeof(DarkRainbowBalloon), 20) }, 400)); for (int i = 0; i < 400; i++) - Waves.Add(new Wave(new List<Tuple<Type, int>>() { new Tuple<Type, int>(typeof(DarkRainbowBalloon), 30 + (i * 10)) }, 300)); + Waves.Add(new Wave(new List<Tuple<Type, int>>() { new Tuple<Type, int>(typeof(DarkRainbowBalloon), 30 + (i * 18)) }, 200)); } public void StartSpawningEnemies() @@ -93,6 +93,11 @@ namespace Penguloon.Levels { Map.Level.Map.WaveManager.StartSpawningEnemies(); Map.Level.ParentScene.StartRoundBtn.ControlState = ControlState.Disabled; + + //////////////////////////// + // call RoundIsFinished for each object + for (int i = 0; i < Map.Objects.Count; i++) + Map.Objects[i].RoundIsFinished(); } } } |
