From 62e90b444315245ef24606fa51d3fccba5f18e08 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 28 Sep 2024 15:29:16 +0200 Subject: initial commit --- UI/hud.gd | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 UI/hud.gd (limited to 'UI/hud.gd') diff --git a/UI/hud.gd b/UI/hud.gd new file mode 100644 index 0000000..d5f7cc3 --- /dev/null +++ b/UI/hud.gd @@ -0,0 +1,7 @@ +extends CanvasLayer + + +func _ready() -> void: + Game.score_changed.connect(func(): + %Score.text = str(Game.score) + ) -- cgit v1.2.3