From 0c58f5048e37ad40c68f56f3dc7756d60816cc0e Mon Sep 17 00:00:00 2001 From: aldrikboy Date: Tue, 2 Jan 2018 17:13:32 +0100 Subject: fanboi & chumchum --- Penguloon/Levels/LevelBase.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Penguloon/Levels/LevelBase.cs') 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; -- cgit v1.2.3-70-g09d2