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.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/Penguloon/Levels/LevelBase.cs b/Penguloon/Levels/LevelBase.cs
index e077ee4..dc8b5af 100644
--- a/Penguloon/Levels/LevelBase.cs
+++ b/Penguloon/Levels/LevelBase.cs
@@ -10,6 +10,8 @@ namespace Penguloon.Levels
{
public abstract class LevelBase
{
+ public LevelType LevelType { get; set; }
+
public GameScene ParentScene { get; set; }
public Texture2D SplashArt { get; set; }
@@ -88,6 +90,8 @@ namespace Penguloon.Levels
for(int i = 0; i < touchLocations.Length; i++)
{
+ if (touchLocations[i].State != TouchLocationState.Released) continue;
+
if (touchLocations[i].Position.X > Map.MapWidth) return;
if (touchLocations[i].Position.Y > Map.MapHeight) return;
@@ -164,7 +168,9 @@ namespace Penguloon.Levels
}
public void FinishGame()
- {
+ {
+ Finished = true;
+
// upload score here or something
UserdataManager.GamesPlayed++;
UserdataManager.TotalKills += Kills;