diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-09-20 22:12:44 +0200 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-09-20 22:12:44 +0200 |
commit | a38f65c261e9d7b23d046cb76b5aeedc05c4b54d (patch) | |
tree | 8cc96d41dc44b75ac1e9f2b95735af7c753a7c74 /hud.gd | |
parent | 3fdb011ef62249a514a8eba2556cc9f6ea5ea477 (diff) |
next commit
Diffstat (limited to 'hud.gd')
-rw-r--r-- | hud.gd | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 + ) |