summaryrefslogtreecommitdiff
path: root/Label.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Label.gd')
-rw-r--r--Label.gd10
1 files changed, 10 insertions, 0 deletions
diff --git a/Label.gd b/Label.gd
new file mode 100644
index 0000000..08ee85d
--- /dev/null
+++ b/Label.gd
@@ -0,0 +1,10 @@
+extends Label
+
+var score = 0
+
+func _ready():
+ text = "Score: " + str(score)
+
+func _on_Hoop_score():
+ score += 1
+ text = "Score: " + str(score)