summaryrefslogtreecommitdiff
path: root/scripts/Game.cs
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-08-30 23:21:20 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-08-30 23:21:20 -0300
commit50ba75c55e9e7a483c8a98a9e3f88214678a5244 (patch)
tree1d075999afd5449c13e2ee7a4d9238ba77257aea /scripts/Game.cs
parent178f9e3363f1b0bb2a04ef53ae98b689a13570f3 (diff)
MĂșltiplas formas de input
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) {