summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLogan <logan@cflip.net>2022-09-23 22:51:09 -0600
committerLogan <logan@cflip.net>2022-09-23 22:51:09 -0600
commitc67cf0598998b3974a4e472a2570c404d83bd80e (patch)
tree50067ed9a90e81692bfa29356dfc01650f9e5630 /scripts
parent31889ce9c6604d5cdf42951c9991d15ff9077da2 (diff)
Added one-way collision and area detection to hoop.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/hoop.gd6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/hoop.gd b/scripts/hoop.gd
new file mode 100644
index 0000000..756501b
--- /dev/null
+++ b/scripts/hoop.gd
@@ -0,0 +1,6 @@
+extends StaticBody2D
+
+signal score
+
+func _on_Area2D_body_exited(body):
+ emit_signal ("score")