summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLogan <logan@cflip.net>2022-09-30 19:25:45 -0600
committerLogan <logan@cflip.net>2022-09-30 19:25:45 -0600
commitb76c6de83b01cddaf589669ef15081ffdbe6148b (patch)
tree41d5390678ab695bbefdf1ab44ef8cfadf10fdf3
parent78057bf535cf382e2382d6faaadb640ea1313e4d (diff)
Added testing controls to test repositioning.
Press SPACEBAR to increase the score.
-rw-r--r--scripts/hoop.gd5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/hoop.gd b/scripts/hoop.gd
index d5574c6..61e2b99 100644
--- a/scripts/hoop.gd
+++ b/scripts/hoop.gd
@@ -13,3 +13,8 @@ func _on_Area2D_body_exited(_body):
func _on_Basketball_reset():
has_scored = false
+
+func _input(event):
+ if event.is_action_pressed("ui_accept"):
+ global_variables.score += 1
+ emit_signal ("score")