From 178f9e3363f1b0bb2a04ef53ae98b689a13570f3 Mon Sep 17 00:00:00 2001 From: Matheus Date: Sat, 30 Aug 2025 22:05:09 -0300 Subject: UI --- scripts/UI.cs | 4 ++-- scripts/map/DungeonGenerator.cs | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/UI.cs b/scripts/UI.cs index fada956..781c14a 100644 --- a/scripts/UI.cs +++ b/scripts/UI.cs @@ -1,13 +1,13 @@ using Godot; using System; -public partial class UI : Node2D +public partial class UI : Node { private TextureProgressBar hpBar; public override void _Ready() { base._Ready(); - hpBar = GetNode("CanvasLayer/HPbar"); + hpBar = GetNode("CanvasLayer/MainContainer/HPbar"); } public void OnHealthChanged(int hp, int maxHp) { diff --git a/scripts/map/DungeonGenerator.cs b/scripts/map/DungeonGenerator.cs index 5f319c4..6a159c9 100644 --- a/scripts/map/DungeonGenerator.cs +++ b/scripts/map/DungeonGenerator.cs @@ -11,7 +11,8 @@ public partial class DungeonGenerator : Node /// private static readonly Godot.Collections.Array enemies = [ GD.Load("res://assets/definitions/actor/Skeleton.tres"), - GD.Load("res://assets/definitions/actor/morcegao.tres") + GD.Load("res://assets/definitions/actor/morcegao.tres"), + GD.Load("res://assets/definitions/actor/Shadow.tres") ]; /// -- cgit v1.2.3