aboutsummaryrefslogtreecommitdiffstats
path: root/HealthBar.gd
diff options
context:
space:
mode:
authorLMBishop <13875753+LMBishop@users.noreply.github.com>2022-10-29 23:05:38 +0100
committerLMBishop <13875753+LMBishop@users.noreply.github.com>2022-10-29 23:05:38 +0100
commit553e6d8a818a33195dbf1d01cb517e46fac7996e (patch)
treec1b5fc0292fcbe3f9f3cd5e5b0e118e4b40c1102 /HealthBar.gd
parent8c87383e13205c506fd253e846f69e0b4af07432 (diff)
Add death screen
Diffstat (limited to 'HealthBar.gd')
-rw-r--r--HealthBar.gd4
1 files changed, 2 insertions, 2 deletions
diff --git a/HealthBar.gd b/HealthBar.gd
index ab9c68b..91a5b8e 100644
--- a/HealthBar.gd
+++ b/HealthBar.gd
@@ -4,11 +4,11 @@ extends ProgressBar
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
-
+signal player_dead
# Called when the node enters the scene tree for the first time.
func _ready():
- pass # Replace with function body.
+ connect("player_dead", get_node("/root/Main/HUD/Wordart"), "_on_player_dead")
# Called every frame. 'delta' is the elapsed time since the previous frame.