summaryrefslogtreecommitdiff
path: root/scripts/Game.cs
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Game.cs')
-rw-r--r--scripts/Game.cs8
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>