Added sounds for high jump pickup and boss slam
This commit is contained in:
parent
353160794a
commit
b0b1d35473
6 changed files with 38 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -2,4 +2,5 @@ extends Item
|
|||
|
||||
func collect():
|
||||
player.jump_strength = 1500
|
||||
$SoundCollect.play()
|
||||
return true
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -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
|
||||
Loading…
Add table
Reference in a new issue