summaryrefslogtreecommitdiff
path: root/scripts/interface.gd
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/interface.gd')
-rw-r--r--scripts/interface.gd10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/interface.gd b/scripts/interface.gd
new file mode 100644
index 0000000..08ee85d
--- /dev/null
+++ b/scripts/interface.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)