summaryrefslogtreecommitdiff
path: root/Penguloon/Levels
diff options
context:
space:
mode:
authoraldrikboy <aldrikboy@gmail.com>2018-01-13 16:37:23 +0100
committeraldrikboy <aldrikboy@gmail.com>2018-01-13 16:37:23 +0100
commit8a4eb6a05b95290cc1d8f26b8c285d391f37fe4e (patch)
tree27444f301d8645eeb02b0b7a22b72090bb98159f /Penguloon/Levels
parentd26927ed5be011c8200e31e2c6f92394c279647d (diff)
game over sound
Diffstat (limited to 'Penguloon/Levels')
-rw-r--r--Penguloon/Levels/LevelBase.cs2
-rw-r--r--Penguloon/Levels/Map.cs6
2 files changed, 3 insertions, 5 deletions
diff --git a/Penguloon/Levels/LevelBase.cs b/Penguloon/Levels/LevelBase.cs
index 013bd94..d2eb1ba 100644
--- a/Penguloon/Levels/LevelBase.cs
+++ b/Penguloon/Levels/LevelBase.cs
@@ -267,6 +267,8 @@ namespace Penguloon.Levels
public void FinishGame()
{
+ SoundManager.PlayGameOverSound();
+
Finished = true;
// upload score here or something
diff --git a/Penguloon/Levels/Map.cs b/Penguloon/Levels/Map.cs
index 7f06cd0..547c0bc 100644
--- a/Penguloon/Levels/Map.cs
+++ b/Penguloon/Levels/Map.cs
@@ -99,10 +99,6 @@ namespace Penguloon.Levels
if (tileTexture != null)
ParentScene.Main.SpriteBatch.Draw(tileTexture,
destinationRectangle: new Rectangle(x * TileWidth, y * TileHeight, TileWidth, TileHeight));
-
- //if (ParentScene.ObjectSeletor.State == Controls.State.Selected)
- // ParentScene.Main.SpriteBatch.Draw(tileTexture,
- // destinationRectangle: new Rectangle(x * TileWidth, y * TileHeight, TileWidth, TileHeight));
}
}
}
@@ -173,7 +169,7 @@ namespace Penguloon.Levels
if(Enemies.Count == 0 && WaveManager.DoneSpawning && WaveManager.RoundActive)
{
WaveManager.RoundActive = false;
- Level.Money += (WaveManager.CurrentWave * 30);
+ Level.Money += (WaveManager.CurrentWave * 15);
}
}