diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-08-30 22:05:09 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-08-30 22:10:41 -0300 |
| commit | 178f9e3363f1b0bb2a04ef53ae98b689a13570f3 (patch) | |
| tree | cd2352322f2d61ed80e7710487bfcb2c3f72f636 /scripts | |
| parent | 2ffc4e42925d50db59033be36019773cb263f37d (diff) | |
UI
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/UI.cs | 4 | ||||
| -rw-r--r-- | scripts/map/DungeonGenerator.cs | 3 |
2 files changed, 4 insertions, 3 deletions
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<TextureProgressBar>("CanvasLayer/HPbar"); + hpBar = GetNode<TextureProgressBar>("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 /// </summary> private static readonly Godot.Collections.Array<EnemyDefinition> enemies = [ GD.Load<EnemyDefinition>("res://assets/definitions/actor/Skeleton.tres"), - GD.Load<EnemyDefinition>("res://assets/definitions/actor/morcegao.tres") + GD.Load<EnemyDefinition>("res://assets/definitions/actor/morcegao.tres"), + GD.Load<EnemyDefinition>("res://assets/definitions/actor/Shadow.tres") ]; /// <summary> |
