summaryrefslogtreecommitdiff
path: root/scripts/hoop.gd
diff options
context:
space:
mode:
authorLogan <logan@cflip.net>2022-10-01 19:00:19 -0600
committerLogan <logan@cflip.net>2022-10-01 19:00:19 -0600
commitc976e1bfefad2d3c8f7608c3ef436879794f3b9d (patch)
tree98d8476d7619c3338e7a1f40a21cbc36f38c5ba4 /scripts/hoop.gd
parent78a037a2652e2b7cc5f652f9c24119bbc8ec7df2 (diff)
Add initial implementation of a timeout screen.
Diffstat (limited to 'scripts/hoop.gd')
-rw-r--r--scripts/hoop.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/hoop.gd b/scripts/hoop.gd
index 61e2b99..c74afe6 100644
--- a/scripts/hoop.gd
+++ b/scripts/hoop.gd
@@ -6,7 +6,7 @@ var has_scored = false
func _on_Area2D_body_exited(_body):
# Prevent scoring multiple points with one basketball throw.
- if !has_scored:
+ if !has_scored and !global_variables.timer_zero:
global_variables.score += 1
has_scored = true
emit_signal ("score")