Add dino footstep sound

This commit is contained in:
karl 2019-11-24 16:24:45 +01:00
parent a8b0721ada
commit 4597c460ca
3 changed files with 45 additions and 1 deletions

View File

@ -1,9 +1,10 @@
[gd_scene load_steps=11 format=2]
[gd_scene load_steps=12 format=2]
[ext_resource path="res://Enemies/Dino.gd" type="Script" id=1]
[ext_resource path="res://Sounds/dino-roar-01.wav" type="AudioStream" id=2]
[ext_resource path="res://Sounds/dino-roar-02.wav" type="AudioStream" id=3]
[ext_resource path="res://Sounds/dino-roar-03.wav" type="AudioStream" id=4]
[ext_resource path="res://Sounds/dino-step.wav" type="AudioStream" id=5]
[sub_resource type="CapsuleShape" id=1]
radius = 5.0
@ -214,6 +215,23 @@ tracks/24/loop_wrap = true
tracks/24/imported = false
tracks/24/enabled = true
tracks/24/keys = PoolRealArray( 0, 1, 0.276277, 0.865345, 0.20345, 0.507601, -0.163989, 0.00819847, 0.845802, 1.45834, 1.45834, 1.45834, 0.0666667, 1, 0.275533, 0.862953, 0.201692, 0.498727, -0.161122, 0.00805514, 0.851614, 1.45834, 1.45834, 1.45834, 0.133333, 1, 0.273625, 0.856823, 0.197188, 0.474649, -0.153343, 0.00766631, 0.866681, 1.45834, 1.45834, 1.45834, 0.2, 1, 0.27063, 0.847199, 0.190117, 0.449954, -0.145365, 0.00726742, 0.881112, 1.45834, 1.45834, 1.45834, 0.6, 1, 0.240565, 0.750588, 0.119134, 0.292295, -0.0944306, 0.00472104, 0.951643, 1.45834, 1.45834, 1.45834, 0.8, 1, 0.225991, 0.703757, 0.0847252, 0.210542, -0.0680188, 0.00340058, 0.97521, 1.45834, 1.45834, 1.45834, 0.866667, 1, 0.222424, 0.692292, 0.0763017, 0.193977, -0.0626673, 0.00313305, 0.978997, 1.45834, 1.45834, 1.45834, 0.933333, 1, 0.219827, 0.683948, 0.0701707, 0.188075, -0.0607606, 0.00303771, 0.980269, 1.45834, 1.45834, 1.45834, 1, 1, 0.218286, 0.678997, 0.066533, 0.182163, -0.0588507, 0.00294224, 0.981501, 1.45834, 1.45834, 1.45834, 1.06667, 1, 0.218177, 0.678647, 0.066276, 0.176242, -0.0569378, 0.00284661, 0.982695, 1.45834, 1.45834, 1.45834, 1.13333, 1, 0.219324, 0.682333, 0.068984, 0.170313, -0.0550223, 0.00275081, 0.983849, 1.45834, 1.45834, 1.45834, 1.2, 1, 0.221675, 0.689886, 0.0745339, 0.164376, -0.0531042, 0.00265496, 0.984964, 1.45834, 1.45834, 1.45834, 1.26667, 1, 0.225032, 0.700675, 0.0824609, 0.158432, -0.0511839, 0.00255886, 0.986039, 1.45834, 1.45834, 1.45834, 1.66667, 1, 0.255769, 0.799443, 0.155029, 0.122662, -0.0396279, 0.00198119, 0.991655, 1.45834, 1.45834, 1.45834, 1.86667, 1, 0.269738, 0.844333, 0.188011, 0.190324, -0.061487, 0.00307397, 0.979789, 1.45834, 1.45834, 1.45834, 1.93333, 1, 0.272953, 0.854662, 0.1956, 0.21288, -0.0687743, 0.00343833, 0.974649, 1.45834, 1.45834, 1.45834, 2, 1, 0.275218, 0.861942, 0.200949, 0.235368, -0.0760393, 0.00380151, 0.96892, 1.45834, 1.45834, 1.45834, 2.06667, 1, 0.276169, 0.864995, 0.203193, 0.257753, -0.083271, 0.00416306, 0.962607, 1.45834, 1.45834, 1.45834, 2.13333, 1, 0.276052, 0.86461, 0.202694, 0.27999, -0.0904551, 0.00452224, 0.955721, 1.45834, 1.45834, 1.45834, 2.2, 1, 0.275195, 0.861812, 0.199817, 0.302041, -0.0975793, 0.00487844, 0.948275, 1.45834, 1.45834, 1.45834, 2.26667, 1, 0.273748, 0.857092, 0.194963, 0.323867, -0.104631, 0.00523086, 0.940285, 1.45834, 1.45834, 1.45834, 2.33333, 1, 0.271842, 0.85087, 0.188567, 0.345438, -0.111599, 0.00557938, 0.931766, 1.45834, 1.45834, 1.45834, 2.86667, 1, 0.250436, 0.781021, 0.116745, 0.503345, -0.162614, 0.00812971, 0.848607, 1.45834, 1.45834, 1.45834, 2.93333, 1, 0.248463, 0.774585, 0.110127, 0.521832, -0.168586, 0.00842832, 0.836181, 1.45834, 1.45834, 1.45834, 3, 1, 0.246932, 0.76959, 0.10499, 0.540038, -0.174468, 0.00872232, 0.823313, 1.45834, 1.45834, 1.45834, 3.06667, 1, 0.246026, 0.766631, 0.101948, 0.557931, -0.180248, 0.00901135, 0.810026, 1.45834, 1.45834, 1.45834, 3.13333, 1, 0.245746, 0.76572, 0.101011, 0.575488, -0.185921, 0.00929494, 0.796342, 1.45834, 1.45834, 1.45834, 3.2, 1, 0.246191, 0.76717, 0.102502, 0.592683, -0.191476, 0.00957263, 0.782287, 1.45834, 1.45834, 1.45834, 3.26667, 1, 0.247285, 0.770741, 0.106174, 0.60949, -0.196905, 0.00984413, 0.767889, 1.45834, 1.45834, 1.45834, 3.33333, 1, 0.248896, 0.775997, 0.111579, 0.625898, -0.202206, 0.0101091, 0.753168, 1.45834, 1.45834, 1.45834, 4.06667, 1, 0.275458, 0.862672, 0.200701, 0.522461, -0.168789, 0.00843845, 0.835747, 1.45834, 1.45834, 1.45834, 4.13333, 1, 0.276163, 0.864972, 0.203066, 0.512571, -0.165594, 0.00827873, 0.842485, 1.45834, 1.45834, 1.45834, 4.16667, 1, 0.276277, 0.865345, 0.20345, 0.507601, -0.163989, 0.00819847, 0.845802, 1.45834, 1.45834, 1.45834 )
tracks/25/type = "method"
tracks/25/path = NodePath("AudioStreamPlayer3D")
tracks/25/interp = 1
tracks/25/loop_wrap = true
tracks/25/imported = false
tracks/25/enabled = true
tracks/25/keys = {
"times": PoolRealArray( 2, 4.2 ),
"transitions": PoolRealArray( 1, 1 ),
"values": [ {
"args": [ 0.0 ],
"method": "play"
}, {
"args": [ 0.0 ],
"method": "play"
} ]
}
[node name="Dino" type="KinematicBody"]
script = ExtResource( 1 )
@ -403,3 +421,8 @@ transform = Transform( 0.295379, 0.61883, 0, -0.61883, 0.295379, 0, 0, 0, 0.6857
autoplay = "ArmatureAction.001"
playback_speed = 2.0
anims/ArmatureAction.001 = SubResource( 2 )
[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="Scene Root"]
stream = ExtResource( 5 )
unit_db = 10.0
unit_size = 15.0

Binary file not shown.

View File

@ -0,0 +1,21 @@
[remap]
importer="wav"
type="AudioStreamSample"
path="res://.import/dino-step.wav-9bf9e1a41f856bb78b83c4c1b678df36.sample"
[deps]
source_file="res://Sounds/dino-step.wav"
dest_files=[ "res://.import/dino-step.wav-9bf9e1a41f856bb78b83c4c1b678df36.sample" ]
[params]
force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=true
edit/normalize=true
edit/loop=false
compress/mode=0