Most beuatiful sounds

This commit is contained in:
MarcEricMartel 2022-10-11 22:15:52 -04:00
parent 9f95f1d0fa
commit bce4618507
5 changed files with 35 additions and 5 deletions

View File

@ -37,6 +37,7 @@ onready var AudioMegaSlap = $AudioMegaSlap
onready var hitbox = $Head/Camera/HitBox onready var hitbox = $Head/Camera/HitBox
onready var slap_cooldown = $SlapCooldown onready var slap_cooldown = $SlapCooldown
onready var AudioCharge = $AudioCharge onready var AudioCharge = $AudioCharge
onready var Music = $Music
onready var Steps = [ $Step1, $Step2, $Step3, $Step4 ] onready var Steps = [ $Step1, $Step2, $Step3, $Step4 ]
var rng = RandomNumberGenerator.new() var rng = RandomNumberGenerator.new()

View File

@ -149,10 +149,17 @@ anims/basic_slap = SubResource( 6 )
[node name="AudioSlap" type="AudioStreamPlayer3D" parent="."] [node name="AudioSlap" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource( 5 ) stream = ExtResource( 5 )
attenuation_model = 2
unit_db = 80.0
max_db = 6.0
bus = "SFX" bus = "SFX"
[node name="AudioMegaSlap" type="AudioStreamPlayer3D" parent="."] [node name="AudioMegaSlap" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource( 6 ) stream = ExtResource( 6 )
attenuation_model = 2
unit_db = 60.0
max_db = 4.0
pitch_scale = 2.0
bus = "SFX" bus = "SFX"
emission_angle_enabled = true emission_angle_enabled = true
doppler_tracking = 2 doppler_tracking = 2
@ -170,29 +177,40 @@ wait_time = 0.5
[node name="Step2" type="AudioStreamPlayer3D" parent="."] [node name="Step2" type="AudioStreamPlayer3D" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -5, 0 ) transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -5, 0 )
stream = ExtResource( 8 ) stream = ExtResource( 8 )
unit_db = 6.0 attenuation_model = 2
unit_db = 80.0
max_db = 6.0
bus = "SFX" bus = "SFX"
[node name="Step3" type="AudioStreamPlayer3D" parent="."] [node name="Step3" type="AudioStreamPlayer3D" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -5, 0 ) transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -5, 0 )
stream = ExtResource( 9 ) stream = ExtResource( 9 )
unit_db = 6.0 attenuation_model = 2
unit_db = 80.0
max_db = 6.0
bus = "SFX" bus = "SFX"
[node name="Step1" type="AudioStreamPlayer3D" parent="."] [node name="Step1" type="AudioStreamPlayer3D" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -5, 0 ) transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -5, 0 )
stream = ExtResource( 11 ) stream = ExtResource( 11 )
unit_db = 6.0 attenuation_model = 2
unit_db = 80.0
max_db = 6.0
bus = "SFX" bus = "SFX"
[node name="Step4" type="AudioStreamPlayer3D" parent="."] [node name="Step4" type="AudioStreamPlayer3D" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -5, 0 ) transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -5, 0 )
stream = ExtResource( 10 ) stream = ExtResource( 10 )
unit_db = 6.0 attenuation_model = 2
unit_db = 80.0
max_db = 6.0
bus = "SFX" bus = "SFX"
[node name="AudioCharge" type="AudioStreamPlayer3D" parent="."] [node name="AudioCharge" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource( 12 ) stream = ExtResource( 12 )
attenuation_model = 2
unit_db = 60.0
max_db = 4.0
pitch_scale = 0.79 pitch_scale = 0.79
bus = "SFX" bus = "SFX"
doppler_tracking = 2 doppler_tracking = 2

View File

@ -103,8 +103,11 @@ wait_time = 3.0
[node name="Explosion" type="AudioStreamPlayer3D" parent="."] [node name="Explosion" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource( 7 ) stream = ExtResource( 7 )
attenuation_model = 2
unit_db = 80.0 unit_db = 80.0
max_db = 6.0 max_db = 6.0
pitch_scale = 1.5
bus = "SFX" bus = "SFX"
attenuation_filter_db = 0.0
[connection signal="timeout" from="DeathTimer" to="." method="_on_DeathTimer_timeout"] [connection signal="timeout" from="DeathTimer" to="." method="_on_DeathTimer_timeout"]

View File

@ -67,6 +67,7 @@ material = ExtResource( 3 )
[node name="CSGBox3" type="CSGBox" parent="CSGCombiner"] [node name="CSGBox3" type="CSGBox" parent="CSGCombiner"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -18, 7.54811, 16 ) transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -18, 7.54811, 16 )
visible = false
height = 14.0 height = 14.0
depth = 14.0 depth = 14.0
material = SubResource( 3 ) material = SubResource( 3 )

View File

@ -1,4 +1,4 @@
[gd_resource type="AudioBusLayout" load_steps=3 format=2] [gd_resource type="AudioBusLayout" load_steps=4 format=2]
[sub_resource type="AudioEffectCompressor" id=1] [sub_resource type="AudioEffectCompressor" id=1]
resource_name = "Compressor" resource_name = "Compressor"
@ -10,6 +10,11 @@ resource_name = "Reverb"
room_size = 1.0 room_size = 1.0
hipass = 0.29 hipass = 0.29
[sub_resource type="AudioEffectCompressor" id=3]
resource_name = "Compressor"
threshold = -20.2
gain = 12.4
[resource] [resource]
bus/0/effect/0/effect = SubResource( 1 ) bus/0/effect/0/effect = SubResource( 1 )
bus/0/effect/0/enabled = false bus/0/effect/0/enabled = false
@ -21,6 +26,8 @@ bus/1/volume_db = 6.02
bus/1/send = "Master" bus/1/send = "Master"
bus/1/effect/0/effect = SubResource( 2 ) bus/1/effect/0/effect = SubResource( 2 )
bus/1/effect/0/enabled = false bus/1/effect/0/enabled = false
bus/1/effect/1/effect = SubResource( 3 )
bus/1/effect/1/enabled = false
bus/2/name = "Music" bus/2/name = "Music"
bus/2/solo = false bus/2/solo = false
bus/2/mute = false bus/2/mute = false