summaryrefslogtreecommitdiff
path: root/hud.gd
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-09-20 22:12:44 +0200
committerDaniel Weipert <git@mail.dweipert.de>2024-09-20 22:12:44 +0200
commita38f65c261e9d7b23d046cb76b5aeedc05c4b54d (patch)
tree8cc96d41dc44b75ac1e9f2b95735af7c753a7c74 /hud.gd
parent3fdb011ef62249a514a8eba2556cc9f6ea5ea477 (diff)
next commit
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
+ )