diff --git a/enemies/boss/boss.gd b/enemies/boss/boss.gd index 6a8350a..4bf6c8a 100644 --- a/enemies/boss/boss.gd +++ b/enemies/boss/boss.gd @@ -58,6 +58,7 @@ func slam(): damage = 2 velocity = up_direction * -1500 await grounded + $SoundSlam.play() destroy_below() damage = 1 velocity = up_direction * 500 @@ -65,6 +66,7 @@ func slam(): damage = 2 velocity = up_direction * -1500 await grounded + $SoundSlam.play() destroy_below() damage = 1 velocity = up_direction * 35 diff --git a/enemies/boss/boss.tscn b/enemies/boss/boss.tscn index 5a3e842..0833ca3 100644 --- a/enemies/boss/boss.tscn +++ b/enemies/boss/boss.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=9 format=3 uid="uid://cpe4s6vsn0ujd"] +[gd_scene load_steps=10 format=3 uid="uid://cpe4s6vsn0ujd"] [ext_resource type="Texture2D" uid="uid://d3b5hmhjw2jyc" path="res://enemies/ghost/ghost animation/Ghost 1.png" id="1_6xxrv"] [ext_resource type="Script" uid="uid://uv672p8f4n6k" path="res://enemies/boss/boss.gd" id="1_skx2t"] @@ -6,6 +6,7 @@ [ext_resource type="PackedScene" uid="uid://mtfsdd4cdf3a" path="res://utils/enemy_hurtbox.tscn" id="2_skx2t"] [ext_resource type="PackedScene" uid="uid://chs0u61f45nau" path="res://utils/earth_aligner.tscn" id="4_lnbgr"] [ext_resource type="AudioStream" uid="uid://co07360hqn6fk" path="res://sounds/686321__cjspellsfish__punch-land-soft.wav" id="6_opohk"] +[ext_resource type="AudioStream" uid="uid://c54uipjpvhal7" path="res://sounds/751710__el_boss__tree-hit-skier-tree-impact-variation-2-of-3.wav" id="7_auiwu"] [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_lnbgr"] @@ -64,5 +65,9 @@ shape = SubResource("RectangleShape2D_lnbgr") stream = ExtResource("6_opohk") volume_db = 15.0 +[node name="SoundSlam" type="AudioStreamPlayer2D" parent="."] +stream = ExtResource("7_auiwu") +volume_db = 12.0 + [connection signal="damage_taken" from="EnemyHurtbox" to="." method="_on_enemy_hurtbox_damage_taken"] [connection signal="died" from="EnemyHurtbox" to="." method="die"] diff --git a/items/permanent_items/high_jump.gd b/items/permanent_items/high_jump.gd index 45b2649..e729163 100644 --- a/items/permanent_items/high_jump.gd +++ b/items/permanent_items/high_jump.gd @@ -2,4 +2,5 @@ extends Item func collect(): player.jump_strength = 1500 + $SoundCollect.play() return true diff --git a/items/permanent_items/high_jump.tscn b/items/permanent_items/high_jump.tscn index 5092b7f..5209b2c 100644 --- a/items/permanent_items/high_jump.tscn +++ b/items/permanent_items/high_jump.tscn @@ -1,9 +1,10 @@ -[gd_scene load_steps=6 format=3 uid="uid://bpgo1djj8f1rg"] +[gd_scene load_steps=7 format=3 uid="uid://bpgo1djj8f1rg"] [ext_resource type="Script" uid="uid://cq6h2iven3rly" path="res://items/permanent_items/high_jump.gd" id="1_7gixi"] [ext_resource type="PackedScene" uid="uid://chs0u61f45nau" path="res://utils/earth_aligner.tscn" id="2_s7mjt"] [ext_resource type="Texture2D" uid="uid://d4mrbgfl7jpqq" path="res://items/ItemShine.png" id="3_ui5no"] [ext_resource type="Texture2D" uid="uid://c6pyyfgkhytu5" path="res://items/permanent_items/high_jump.png" id="4_7gixi"] +[ext_resource type="AudioStream" uid="uid://pdd0sy3p4y0d" path="res://sounds/750240__universfield__coin-drop.mp3" id="5_s7mjt"] [sub_resource type="CircleShape2D" id="CircleShape2D_bya24"] @@ -27,3 +28,6 @@ texture = ExtResource("3_ui5no") texture_filter = 1 scale = Vector2(4, 4) texture = ExtResource("4_7gixi") + +[node name="SoundCollect" type="AudioStreamPlayer2D" parent="."] +stream = ExtResource("5_s7mjt") diff --git a/sounds/751710__el_boss__tree-hit-skier-tree-impact-variation-2-of-3.wav b/sounds/751710__el_boss__tree-hit-skier-tree-impact-variation-2-of-3.wav new file mode 100644 index 0000000..4818f65 Binary files /dev/null and b/sounds/751710__el_boss__tree-hit-skier-tree-impact-variation-2-of-3.wav differ diff --git a/sounds/751710__el_boss__tree-hit-skier-tree-impact-variation-2-of-3.wav.import b/sounds/751710__el_boss__tree-hit-skier-tree-impact-variation-2-of-3.wav.import new file mode 100644 index 0000000..e647428 --- /dev/null +++ b/sounds/751710__el_boss__tree-hit-skier-tree-impact-variation-2-of-3.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://c54uipjpvhal7" +path="res://.godot/imported/751710__el_boss__tree-hit-skier-tree-impact-variation-2-of-3.wav-16a1dfef3be36a56b586ac64c8b3d75c.sample" + +[deps] + +source_file="res://sounds/751710__el_boss__tree-hit-skier-tree-impact-variation-2-of-3.wav" +dest_files=["res://.godot/imported/751710__el_boss__tree-hit-skier-tree-impact-variation-2-of-3.wav-16a1dfef3be36a56b586ac64c8b3d75c.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=2