diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-01 17:50:25 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-01 17:50:25 -0300 |
| commit | 0456e7cd82b232a38fd9b6e008be7d49b2f9e90f (patch) | |
| tree | ea2285eaca0d68c269d07212bc6a1e3688b9aef8 /scripts/Game.cs | |
| parent | d7d2454d5ccc1e0acb47cb679c7550e74c4e1916 (diff) | |
Logs
Diffstat (limited to 'scripts/Game.cs')
| -rw-r--r-- | scripts/Game.cs | 8 |
1 files changed, 5 insertions, 3 deletions
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 { /// </summary> 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>("Map"); inputHandler = GetNode<InputHandler>("InputHandler"); - ui = GetNode<UI>("UI"); + hud = GetNode<Hud>("HUD"); // O jogador é criado pelo jogo. Player player = new Player(Vector2I.Zero, null, playerDefinition); Camera2D camera = GetNode<Camera2D>("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"); } /// <summary> |
