diff options
author | tpart <tpart120@proton.me> | 2024-07-01 13:56:45 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-07-01 13:56:45 +0200 |
commit | a79507334a51ec53414a31b61d0398e1ef1e71c6 (patch) | |
tree | 2d0fa3b8f9dc51968a6e2d7334a0a9f505f1be07 | |
parent | d2b974cdef475e8ab274f3132c4af46081ea67e4 (diff) | |
download | hurrycurry-a79507334a51ec53414a31b61d0398e1ef1e71c6.tar hurrycurry-a79507334a51ec53414a31b61d0398e1ef1e71c6.tar.bz2 hurrycurry-a79507334a51ec53414a31b61d0398e1ef1e71c6.tar.zst |
Add boost sound effects
-rw-r--r-- | client/menu/credits_menu.gd | 3 | ||||
-rw-r--r-- | client/player/character/character.gd | 7 | ||||
-rw-r--r-- | client/player/character/character.tscn | 14 | ||||
-rw-r--r-- | client/player/sounds/woosh1.ogg | bin | 0 -> 6730 bytes | |||
-rw-r--r-- | client/player/sounds/woosh1.ogg.import | 19 | ||||
-rw-r--r-- | client/player/sounds/woosh2.ogg | bin | 0 -> 6767 bytes | |||
-rw-r--r-- | client/player/sounds/woosh2.ogg.import | 19 |
7 files changed, 59 insertions, 3 deletions
diff --git a/client/menu/credits_menu.gd b/client/menu/credits_menu.gd index 86a4443f..00ca0f04 100644 --- a/client/menu/credits_menu.gd +++ b/client/menu/credits_menu.gd @@ -24,7 +24,8 @@ var cc_by_4 := { "Footstep sounds": "Dryoma", "Page_Turn_24.wav": "Koops", "Pencil, Writing, Close, A.wav": "InspectorJ", - "Universal UI/Menu Soundpack": "Ellr" + "Universal UI/Menu Soundpack": "Ellr", + "Woosh Fleuret Escrime B.WAV": "toyoto" } @onready var menu_manager: MenuManager = get_parent() diff --git a/client/player/character/character.gd b/client/player/character/character.gd index 385481cc..11db638f 100644 --- a/client/player/character/character.gd +++ b/client/player/character/character.gd @@ -40,6 +40,7 @@ var current_animation := "idle" } @onready var step_sounds: PlayRandom = $Steps +@onready var boost_sounds: PlayRandom = $Boosts func _ready(): play_animation("idle") @@ -63,7 +64,11 @@ func _process(delta): next_animation = "idle" walking_particles.emitting = walking - boosting_particles.emitting = boosting and walking and not was_boosting + if boosting and walking and not was_boosting: + boosting_particles.emitting = true + boost_sounds.play_random() + else: + boosting_particles.emitting = false was_boosting = boosting and walking if current_animation != next_animation: diff --git a/client/player/character/character.tscn b/client/player/character/character.tscn index 106b4057..3bea6100 100644 --- a/client/player/character/character.tscn +++ b/client/player/character/character.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=22 format=3 uid="uid://b3hhir2fvnunu"] +[gd_scene load_steps=24 format=3 uid="uid://b3hhir2fvnunu"] [ext_resource type="Script" path="res://player/character/character.gd" id="1_12lbh"] [ext_resource type="ArrayMesh" uid="uid://bnmm01yjwultj" path="res://player/character/main.res" id="2_lxdbd"] @@ -13,6 +13,8 @@ [ext_resource type="AudioStream" uid="uid://4b6ix4pkfxpj" path="res://player/sounds/step2.ogg" id="11_2dmo8"] [ext_resource type="AudioStream" uid="uid://ywlunfulmrc6" path="res://player/sounds/step3.ogg" id="12_bj5ue"] [ext_resource type="Script" path="res://audio/play_random.gd" id="14_3rb6x"] +[ext_resource type="AudioStream" uid="uid://1jsqpnk3igj3" path="res://player/sounds/woosh1.ogg" id="14_ikcec"] +[ext_resource type="AudioStream" uid="uid://cwme7eatip0jc" path="res://player/sounds/woosh2.ogg" id="15_iv4wu"] [sub_resource type="Animation" id="Animation_tdhvg"] length = 0.001 @@ -674,4 +676,14 @@ volume_db = -8.0 stream = ExtResource("12_bj5ue") volume_db = -8.0 +[node name="Boosts" type="Node" parent="."] +script = ExtResource("14_3rb6x") + +[node name="Woosh1" type="AudioStreamPlayer3D" parent="Boosts"] +stream = ExtResource("14_ikcec") +volume_db = -8.0 + +[node name="Woosh2" type="AudioStreamPlayer3D" parent="Boosts"] +stream = ExtResource("15_iv4wu") + [connection signal="animation_finished" from="HandAnimations" to="." method="_on_hand_animations_animation_finished"] diff --git a/client/player/sounds/woosh1.ogg b/client/player/sounds/woosh1.ogg Binary files differnew file mode 100644 index 00000000..284fc480 --- /dev/null +++ b/client/player/sounds/woosh1.ogg diff --git a/client/player/sounds/woosh1.ogg.import b/client/player/sounds/woosh1.ogg.import new file mode 100644 index 00000000..38b1c435 --- /dev/null +++ b/client/player/sounds/woosh1.ogg.import @@ -0,0 +1,19 @@ +[remap] + +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://1jsqpnk3igj3" +path="res://.godot/imported/woosh1.ogg-1f4b2fe1be72c87cf944d6c0761e71c8.oggvorbisstr" + +[deps] + +source_file="res://player/sounds/woosh1.ogg" +dest_files=["res://.godot/imported/woosh1.ogg-1f4b2fe1be72c87cf944d6c0761e71c8.oggvorbisstr"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/client/player/sounds/woosh2.ogg b/client/player/sounds/woosh2.ogg Binary files differnew file mode 100644 index 00000000..0a94ec9a --- /dev/null +++ b/client/player/sounds/woosh2.ogg diff --git a/client/player/sounds/woosh2.ogg.import b/client/player/sounds/woosh2.ogg.import new file mode 100644 index 00000000..c38bf1fe --- /dev/null +++ b/client/player/sounds/woosh2.ogg.import @@ -0,0 +1,19 @@ +[remap] + +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://cwme7eatip0jc" +path="res://.godot/imported/woosh2.ogg-adc164c3f2035f82c8c508e981753d03.oggvorbisstr" + +[deps] + +source_file="res://player/sounds/woosh2.ogg" +dest_files=["res://.godot/imported/woosh2.ogg-adc164c3f2035f82c8c508e981753d03.oggvorbisstr"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 |