From 0456e7cd82b232a38fd9b6e008be7d49b2f9e90f Mon Sep 17 00:00:00 2001 From: Matheus Date: Mon, 1 Sep 2025 17:50:25 -0300 Subject: Logs --- scripts/Game.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'scripts/Game.cs') diff --git a/scripts/Game.cs b/scripts/Game.cs index 58a5957..3050e22 100644 --- a/scripts/Game.cs +++ b/scripts/Game.cs @@ -23,7 +23,7 @@ public partial class Game : Node { /// private TurnManager turnManager; - private UI ui; + private Hud hud; public override void _Ready() { base._Ready(); @@ -31,13 +31,13 @@ public partial class Game : Node { Map = GetNode("Map"); inputHandler = GetNode("InputHandler"); - ui = GetNode("UI"); + hud = GetNode("HUD"); // O jogador é criado pelo jogo. Player player = new Player(Vector2I.Zero, null, playerDefinition); Camera2D camera = GetNode("Camera2D"); RemoveChild(camera); - player.HealthChanged += (int hp, int maxHp) => ui.OnHealthChanged(hp, maxHp); + player.HealthChanged += (int hp, int maxHp) => hud.OnHealthChanged(hp, maxHp); player.Died += () => inputHandler.SetInputHandler(InputHandlers.GameOver); player.AddChild(camera); @@ -47,6 +47,8 @@ public partial class Game : Node { Map.UpdateFOV(player.GridPosition); turnManager = new(Map); + + MessageLog.SendMessage("UMA FILA DE HOMENS EJACULANDO NA BOCA DA DALVA"); } /// -- cgit v1.2.3