summaryrefslogtreecommitdiff
path: root/scripts/Game.cs
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Game.cs')
-rw-r--r--scripts/Game.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/Game.cs b/scripts/Game.cs
index 4dc7a34..981699d 100644
--- a/scripts/Game.cs
+++ b/scripts/Game.cs
@@ -34,6 +34,7 @@ public partial class Game : Node {
Camera2D camera = GetNode<Camera2D>("Camera2D");
RemoveChild(camera);
player.HealthChanged += (int hp, int maxHp) => ui.OnHealthChanged(hp, maxHp);
+ player.Died += () => inputHandler.SetInputHandler(InputHandlers.GameOver);
player.AddChild(camera);
@@ -80,7 +81,7 @@ public partial class Game : Node {
}
/// <summary>
- /// Executa um turno para cada ator no mapa.
+ /// Executa turnos para cada ator no mapa.
/// </summary>
private void HandleEnemyTurns() {
foreach (Actor actor in Map.Map_Data.Actors) {