summaryrefslogtreecommitdiff
path: root/scripts/hoop.gd
diff options
context:
space:
mode:
authorLogan <logan@cflip.net>2022-09-24 13:42:27 -0600
committerLogan <logan@cflip.net>2022-09-24 13:42:27 -0600
commitae19500dba6283d597238579a465ee652a9ef86a (patch)
treeab376bcb505908aff00216d7e4b1b659ca244327 /scripts/hoop.gd
parent1ba96860017fa48873f180769e84d2fbf90c7ee1 (diff)
Make score a global variable and interface displays power.
Diffstat (limited to 'scripts/hoop.gd')
-rw-r--r--scripts/hoop.gd1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/hoop.gd b/scripts/hoop.gd
index 0ff820a..94b3069 100644
--- a/scripts/hoop.gd
+++ b/scripts/hoop.gd
@@ -3,4 +3,5 @@ extends StaticBody2D
signal score
func _on_Area2D_body_exited(_body):
+ global_variables.score += 1
emit_signal ("score")