summaryrefslogtreecommitdiff
path: root/hud.gd
diff options
context:
space:
mode:
Diffstat (limited to 'hud.gd')
-rw-r--r--hud.gd1
1 files changed, 1 insertions, 0 deletions
diff --git a/hud.gd b/hud.gd
index 72d5b96..0efc33a 100644
--- a/hud.gd
+++ b/hud.gd
@@ -3,6 +3,7 @@ extends CanvasLayer
func _ready() -> void:
%Score.text = str(Game.score)
+ %Life.text = str(Game.player_state.life).pad_zeros(2)
Game.score_changed.connect(func():
%Score.text = str(Game.score)