diff options
| author | aldrikboy <aldrikboy@gmail.com> | 2018-01-02 17:13:32 +0100 |
|---|---|---|
| committer | aldrikboy <aldrikboy@gmail.com> | 2018-01-02 17:13:32 +0100 |
| commit | 0c58f5048e37ad40c68f56f3dc7756d60816cc0e (patch) | |
| tree | d64e3d12f4994d2b2c0f4bd9d0c2c74611289b04 /Penguloon/Levels/LevelBase.cs | |
| parent | c3c4f2c7617c393ad6e8c7f1d87abf4a9a8cf602 (diff) | |
fanboi & chumchum
Diffstat (limited to 'Penguloon/Levels/LevelBase.cs')
| -rw-r--r-- | Penguloon/Levels/LevelBase.cs | 8 |
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; |
