summaryrefslogtreecommitdiff
path: root/scripts/basketball.gd
diff options
context:
space:
mode:
authorLogan <logan@cflip.net>2023-05-15 05:47:18 -0600
committerLogan <logan@cflip.net>2023-05-15 05:47:18 -0600
commit35e5e8560da7b66bb988d0f1fc1db521e6e59bd7 (patch)
tree0bfad3320262ecedeb047bc41294b6b5f8b9808c /scripts/basketball.gd
parentaf772345caa9fc3a006f91fbd4ab10fc11fe33c7 (diff)
Added basketball collision sounds and audio system
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()))