summaryrefslogtreecommitdiff
path: root/Penguloon/Levels/LevelBase.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Penguloon/Levels/LevelBase.cs')
-rw-r--r--Penguloon/Levels/LevelBase.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/Penguloon/Levels/LevelBase.cs b/Penguloon/Levels/LevelBase.cs
index f4c45a8..5698cfa 100644
--- a/Penguloon/Levels/LevelBase.cs
+++ b/Penguloon/Levels/LevelBase.cs
@@ -14,10 +14,14 @@ namespace Penguloon.Levels
public int Health { get; set; }
- public int Money { get; set; }
+ public int Money { get; set; } = 0;
public int ID { get; set; }
+ public int Kills { get; set; } = 0;
+
+ public bool Finished { get; set; } = false;
+
public LevelBase()
{
@@ -42,6 +46,11 @@ namespace Penguloon.Levels
{
Map.Update(deltaTime);
+ if(Health <= 0)
+ {
+ Finished = true;
+ }
+
UpdateUnique(deltaTime, touchLocations);
}