From 35e5e8560da7b66bb988d0f1fc1db521e6e59bd7 Mon Sep 17 00:00:00 2001 From: Logan Date: Mon, 15 May 2023 05:47:18 -0600 Subject: Added basketball collision sounds and audio system --- scripts/basketball.gd | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/basketball.gd') 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())) -- cgit v1.2.3