aboutsummaryrefslogtreecommitdiffstats
path: root/HUD.tscn
diff options
context:
space:
mode:
authorfreddie-a <57713959+freddie-a@users.noreply.github.com>2022-10-29 21:59:06 +0100
committerfreddie-a <57713959+freddie-a@users.noreply.github.com>2022-10-29 21:59:06 +0100
commit92758c8c998091b8c2a20e6af5f2f473aa130d7a (patch)
tree1a86ffdf0388000b903851fb5230edb8199eff99 /HUD.tscn
parente91f2c9f403522b22b730f777baa354b9a9cfedc (diff)
Add health loss
Diffstat (limited to 'HUD.tscn')
-rw-r--r--HUD.tscn7
1 files changed, 5 insertions, 2 deletions
diff --git a/HUD.tscn b/HUD.tscn
index 625fc56..49e6608 100644
--- a/HUD.tscn
+++ b/HUD.tscn
@@ -1,4 +1,6 @@
-[gd_scene format=2]
+[gd_scene load_steps=2 format=2]
+
+[ext_resource path="res://HealthBar.gd" type="Script" id=1]
[node name="HUD" type="CanvasLayer"]
@@ -16,13 +18,14 @@ margin_bottom = 14.0
text = "Health:"
align = 2
-[node name="ProgressBar" type="ProgressBar" parent="HBoxContainer"]
+[node name="HealthBar" type="ProgressBar" parent="HBoxContainer"]
margin_left = 56.0
margin_right = 1205.0
margin_bottom = 14.0
size_flags_horizontal = 3
size_flags_vertical = 3
value = 100.0
+script = ExtResource( 1 )
[node name="Label2" type="Label" parent="HBoxContainer"]
margin_left = 1215.0