feat: sound integration
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 8s
Create tag and build when new code gets to main / Export (push) Successful in 2m17s

This commit is contained in:
2025-08-03 12:41:19 +02:00
parent 130334d315
commit 49ede4a46b
12 changed files with 218 additions and 9 deletions

View File

@ -1,8 +1,11 @@
[gd_scene load_steps=6 format=3 uid="uid://4bfkbcr7v8tj"]
[gd_scene load_steps=10 format=3 uid="uid://4bfkbcr7v8tj"]
[ext_resource type="Script" uid="uid://127t4dvlp6tv" path="res://arrow/arrow.gd" id="1_d2qln"]
[ext_resource type="Script" uid="uid://dt2lsk3je41th" path="res://damageable/hitbox.gd" id="2_d2qln"]
[ext_resource type="Texture2D" uid="uid://lhq6h8f81qrr" path="res://player/assets/Fleche.png" id="2_ofxgm"]
[ext_resource type="AudioStream" uid="uid://ca5ip2v4sbw8r" path="res://world_assets/audio/384912__ali_6868__arrow-impact-3.wav" id="4_lo0oj"]
[ext_resource type="AudioStream" uid="uid://cl171ph84g5t2" path="res://world_assets/audio/384913__ali_6868__arrow-impact-2.wav" id="5_nl01e"]
[ext_resource type="AudioStream" uid="uid://ejdkgkgh1arq" path="res://world_assets/audio/384914__ali_6868__arrow-impact-1.wav" id="6_e3mw3"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_d2qln"]
size = Vector2(2, 2)
@ -10,6 +13,12 @@ size = Vector2(2, 2)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_yaehf"]
size = Vector2(12, 5)
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_l8mgh"]
streams_count = 3
stream_0/stream = ExtResource("4_lo0oj")
stream_1/stream = ExtResource("5_nl01e")
stream_2/stream = ExtResource("6_e3mw3")
[node name="Arrow" type="RigidBody2D"]
collision_layer = 0
collision_mask = 0
@ -42,6 +51,10 @@ wait_time = 3.0
one_shot = true
ignore_time_scale = true
[node name="KillAudio" type="AudioStreamPlayer" parent="."]
stream = SubResource("AudioStreamRandomizer_l8mgh")
bus = &"SFX"
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="body_entered" from="Area2D" to="." method="_on_body_entered"]
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"]