summaryrefslogtreecommitdiff
path: root/hud.gd
diff options
context:
space:
mode:
Diffstat (limited to 'hud.gd')
-rw-r--r--hud.gd9
1 files changed, 9 insertions, 0 deletions
diff --git a/hud.gd b/hud.gd
new file mode 100644
index 0000000..86ca7da
--- /dev/null
+++ b/hud.gd
@@ -0,0 +1,9 @@
+extends CanvasLayer
+
+
+var score: int = 0: set = set_score
+
+
+func set_score(value: int) -> void:
+ score = value
+ $Score.text = str(score)