summaryrefslogtreecommitdiff
path: root/scripts/basketball.gd
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/basketball.gd')
-rw-r--r--scripts/basketball.gd3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/basketball.gd b/scripts/basketball.gd
index 7616e14..57c211c 100644
--- a/scripts/basketball.gd
+++ b/scripts/basketball.gd
@@ -103,3 +103,6 @@ func _on_Hoop_score():
if global_variables.score >= phase_increment[2] and global_variables.score < phase_increment[3]:
phase = 2
position_changer()
+
+func _on_body_entered(_body):
+ $"/root/Audio".impact_noise(abs($"/root/Node2D/Basketball".get_linear_velocity()))