Boss Deathsound
This commit is contained in:
parent
38eb4d8c72
commit
8963841341
6 changed files with 30 additions and 21 deletions
|
|
@ -110,7 +110,8 @@ func die():
|
||||||
for child in get_children():
|
for child in get_children():
|
||||||
if not child is AudioStreamPlayer2D:
|
if not child is AudioStreamPlayer2D:
|
||||||
child.queue_free()
|
child.queue_free()
|
||||||
await $AudioStreamPlayer2D.finished
|
$DeathSound.play()
|
||||||
|
await $DeathSound.finished
|
||||||
queue_free()
|
queue_free()
|
||||||
|
|
||||||
func _on_enemy_hurtbox_damage_taken(_damage, _dir) -> void:
|
func _on_enemy_hurtbox_damage_taken(_damage, _dir) -> void:
|
||||||
|
|
|
||||||
|
|
@ -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="Script" uid="uid://uv672p8f4n6k" path="res://enemies/boss/boss.gd" id="1_skx2t"]
|
[ext_resource type="Script" uid="uid://uv672p8f4n6k" path="res://enemies/boss/boss.gd" id="1_skx2t"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bg2hgia0jqnqf" path="res://enemies/boss/blob_big.tscn" id="2_o1i15"]
|
[ext_resource type="PackedScene" uid="uid://bg2hgia0jqnqf" path="res://enemies/boss/blob_big.tscn" id="2_o1i15"]
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
[ext_resource type="Texture2D" uid="uid://q5mu3lxlsd6f" path="res://enemies/boss/boss2.png" id="3_opohk"]
|
[ext_resource type="Texture2D" uid="uid://q5mu3lxlsd6f" path="res://enemies/boss/boss2.png" id="3_opohk"]
|
||||||
[ext_resource type="PackedScene" uid="uid://chs0u61f45nau" path="res://utils/earth_aligner.tscn" id="4_lnbgr"]
|
[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://co07360hqn6fk" path="res://sounds/686321__cjspellsfish__punch-land-soft.wav" id="6_opohk"]
|
||||||
|
[ext_resource type="AudioStream" uid="uid://ngkksuy3438s" path="res://sounds/slime-impact-352473.mp3" id="7_auiwu"]
|
||||||
|
|
||||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_lnbgr"]
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_lnbgr"]
|
||||||
|
|
||||||
|
|
@ -59,5 +60,9 @@ shape = SubResource("RectangleShape2D_lnbgr")
|
||||||
stream = ExtResource("6_opohk")
|
stream = ExtResource("6_opohk")
|
||||||
volume_db = 15.0
|
volume_db = 15.0
|
||||||
|
|
||||||
|
[node name="DeathSound" type="AudioStreamPlayer2D" parent="."]
|
||||||
|
stream = ExtResource("7_auiwu")
|
||||||
|
volume_db = 10.0
|
||||||
|
|
||||||
[connection signal="damage_taken" from="EnemyHurtbox" to="." method="_on_enemy_hurtbox_damage_taken"]
|
[connection signal="damage_taken" from="EnemyHurtbox" to="." method="_on_enemy_hurtbox_damage_taken"]
|
||||||
[connection signal="died" from="EnemyHurtbox" to="." method="die"]
|
[connection signal="died" from="EnemyHurtbox" to="." method="die"]
|
||||||
|
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
[remap]
|
|
||||||
|
|
||||||
importer="mp3"
|
|
||||||
type="AudioStreamMP3"
|
|
||||||
uid="uid://ngkksuy3438s"
|
|
||||||
path="res://.godot/imported/slime-impact-352473.mp3-fb4475c7240b9b9964b3f9549708ada2.mp3str"
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://enemies/boss/slime-impact-352473.mp3"
|
|
||||||
dest_files=["res://.godot/imported/slime-impact-352473.mp3-fb4475c7240b9b9964b3f9549708ada2.mp3str"]
|
|
||||||
|
|
||||||
[params]
|
|
||||||
|
|
||||||
loop=false
|
|
||||||
loop_offset=0
|
|
||||||
bpm=0
|
|
||||||
beat_count=0
|
|
||||||
bar_beats=4
|
|
||||||
|
|
@ -82,6 +82,9 @@ texture = ExtResource("3_kek77")
|
||||||
script = ExtResource("10_efxa6")
|
script = ExtResource("10_efxa6")
|
||||||
boss = ExtResource("11_efxa6")
|
boss = ExtResource("11_efxa6")
|
||||||
|
|
||||||
|
[node name="Boss" parent="." instance=ExtResource("11_efxa6")]
|
||||||
|
position = Vector2(0, -2800)
|
||||||
|
|
||||||
[connection signal="active_item_changed" from="Player" to="UIOverlay/ItemUI" method="_on_player_active_item_changed"]
|
[connection signal="active_item_changed" from="Player" to="UIOverlay/ItemUI" method="_on_player_active_item_changed"]
|
||||||
[connection signal="health_changed" from="Player" to="UIOverlay/Healthbar" method="_on_player_health_changed"]
|
[connection signal="health_changed" from="Player" to="UIOverlay/Healthbar" method="_on_player_health_changed"]
|
||||||
[connection signal="max_hp_changed" from="Player" to="UIOverlay/Healthbar" method="_on_player_max_hp_changed"]
|
[connection signal="max_hp_changed" from="Player" to="UIOverlay/Healthbar" method="_on_player_max_hp_changed"]
|
||||||
|
|
|
||||||
19
sounds/slime-impact-352473.mp3.import
Normal file
19
sounds/slime-impact-352473.mp3.import
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="mp3"
|
||||||
|
type="AudioStreamMP3"
|
||||||
|
uid="uid://ngkksuy3438s"
|
||||||
|
path="res://.godot/imported/slime-impact-352473.mp3-962a925e1560f7138d13e0a5d96fb9ca.mp3str"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://sounds/slime-impact-352473.mp3"
|
||||||
|
dest_files=["res://.godot/imported/slime-impact-352473.mp3-962a925e1560f7138d13e0a5d96fb9ca.mp3str"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
loop=false
|
||||||
|
loop_offset=0
|
||||||
|
bpm=0
|
||||||
|
beat_count=0
|
||||||
|
bar_beats=4
|
||||||
Loading…
Add table
Reference in a new issue