summaryrefslogtreecommitdiff
path: root/hud.gd
diff options
context:
space:
mode:
Diffstat (limited to 'hud.gd')
-rw-r--r--hud.gd10
1 files changed, 10 insertions, 0 deletions
diff --git a/hud.gd b/hud.gd
index d5f7cc3..72d5b96 100644
--- a/hud.gd
+++ b/hud.gd
@@ -2,6 +2,16 @@ extends CanvasLayer
func _ready() -> void:
+ %Score.text = str(Game.score)
+
Game.score_changed.connect(func():
%Score.text = str(Game.score)
)
+
+ Game.boss_initialized.connect(func(hp):
+ %BossHPBar.visible = true
+ %BossHPBar.initialize(hp)
+
+ $PanelContainer/VBoxContainer/Top/Left/Score.visible = false
+ $PanelContainer/VBoxContainer/Top/Left/Boss.visible = true
+ )