summaryrefslogtreecommitdiff
path: root/Penguloon/Levels
diff options
context:
space:
mode:
authoraldrikboy <aldrikboy@gmail.com>2018-01-23 13:31:50 +0100
committeraldrikboy <aldrikboy@gmail.com>2018-01-23 13:31:50 +0100
commitc574b1243c572d774c7430f4495b1d6b490f9fbc (patch)
tree4cb103a840d48513dad81545869483b42216c9e7 /Penguloon/Levels
parent45bbe9f283b30f03167548c2b41eee22784a974f (diff)
Balancing
Diffstat (limited to 'Penguloon/Levels')
-rw-r--r--Penguloon/Levels/Map.cs3
-rw-r--r--Penguloon/Levels/WaveManager.cs13
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();
}
}
}