Sfoglia il codice sorgente

:beetle: Ajoute le bruit de rebond manquant des balles speciales

DricomDragon 8 mesi fa
parent
commit
c9e86905d2

+ 2 - 2
godot/composants/objets/balle/balle.tscn

@@ -22,9 +22,9 @@ texture = ExtResource("2_aab72")
 [node name="Forme" type="CollisionShape2D" parent="."]
 shape = SubResource("CircleShape2D_lab73")
 
-[node name="CollisionNoise" type="AudioStreamPlayer2D" parent="."]
+[node name="BruitRebond" type="AudioStreamPlayer2D" parent="."]
 stream = ExtResource("3_7fm42")
 volume_db = 7.429
 bus = &"Bruits"
 
-[connection signal="rebondi" from="." to="CollisionNoise" method="play"]
+[connection signal="rebondi" from="." to="BruitRebond" method="play"]

+ 9 - 1
godot/composants/objets/balle/balle_de_feu/balle_de_feu.tscn

@@ -1,7 +1,8 @@
-[gd_scene load_steps=4 format=3 uid="uid://caq4nri545npd"]
+[gd_scene load_steps=5 format=3 uid="uid://caq4nri545npd"]
 
 [ext_resource type="Script" path="res://composants/objets/balle/balle_de_feu/balle_de_feu.gd" id="1_snyek"]
 [ext_resource type="Texture2D" uid="uid://pwewqo1blabg" path="res://composants/objets/balle/balle_de_feu/02.png" id="2_bp2kr"]
+[ext_resource type="AudioStream" uid="uid://cfmm8vsdh4ahu" path="res://composants/objets/balle/collision_sfx.wav" id="3_uurrw"]
 
 [sub_resource type="CircleShape2D" id="CircleShape2D_lab73"]
 radius = 5.42
@@ -20,3 +21,10 @@ texture = ExtResource("2_bp2kr")
 
 [node name="Forme" type="CollisionShape2D" parent="."]
 shape = SubResource("CircleShape2D_lab73")
+
+[node name="BruitRebond" type="AudioStreamPlayer2D" parent="."]
+stream = ExtResource("3_uurrw")
+volume_db = 7.429
+bus = &"Bruits"
+
+[connection signal="rebondi" from="." to="BruitRebond" method="play"]

+ 8 - 1
godot/composants/objets/balle/balle_elec/balle_electrique.tscn

@@ -1,4 +1,4 @@
-[gd_scene load_steps=9 format=3 uid="uid://crpfyx6e5kn45"]
+[gd_scene load_steps=10 format=3 uid="uid://crpfyx6e5kn45"]
 
 [ext_resource type="Script" path="res://composants/objets/balle/balle_elec/balle_electrique.gd" id="1_fuild"]
 [ext_resource type="Texture2D" uid="uid://blttr4e575gkk" path="res://composants/objets/balle/balle_elec/09.png" id="2_rvm4r"]
@@ -6,6 +6,7 @@
 [ext_resource type="Script" path="res://composants/objets/balle/balle_elec/champ_detection.gd" id="4_jf5yp"]
 [ext_resource type="AudioStream" uid="uid://d2aip7cvmkngl" path="res://composants/objets/balle/balle_elec/electric_hit.wav" id="5_tegew"]
 [ext_resource type="AudioStream" uid="uid://bkoweg86w7xtc" path="res://composants/objets/balle/balle_elec/electric_reload.wav" id="6_54hs4"]
+[ext_resource type="AudioStream" uid="uid://cfmm8vsdh4ahu" path="res://composants/objets/balle/collision_sfx.wav" id="7_hn5xs"]
 
 [sub_resource type="CircleShape2D" id="CircleShape2D_lab73"]
 radius = 5.42
@@ -49,6 +50,11 @@ stream = ExtResource("6_54hs4")
 autoplay = true
 bus = &"Bruits"
 
+[node name="BruitRebond" type="AudioStreamPlayer2D" parent="."]
+stream = ExtResource("7_hn5xs")
+volume_db = 7.429
+bus = &"Bruits"
+
 [connection signal="charge" from="." to="ImageSurcharge" method="show"]
 [connection signal="charge" from="." to="ImageStatique" method="hide"]
 [connection signal="charge" from="." to="ChampElectrique" method="activer_detection"]
@@ -57,4 +63,5 @@ bus = &"Bruits"
 [connection signal="decharge" from="." to="ImageStatique" method="show"]
 [connection signal="decharge" from="." to="ChampElectrique" method="desactiver_detection"]
 [connection signal="decharge" from="." to="BruitDecharge" method="play"]
+[connection signal="rebondi" from="." to="BruitRebond" method="play"]
 [connection signal="body_entered" from="ChampElectrique" to="." method="_quand_champ_electrique_detecte_coprs"]

+ 9 - 1
godot/composants/objets/balle/balle_spectrale/balle_spectrale.tscn

@@ -1,8 +1,9 @@
-[gd_scene load_steps=5 format=3 uid="uid://bf7cq8j182cmh"]
+[gd_scene load_steps=6 format=3 uid="uid://c6fsp8efuw0k3"]
 
 [ext_resource type="Script" path="res://composants/objets/balle/balle_spectrale/balle_spectrale.gd" id="1_snyek"]
 [ext_resource type="Texture2D" uid="uid://dqygu3upmpf3v" path="res://composants/objets/balle/balle_spectrale/07.png" id="2_sf2e6"]
 [ext_resource type="Texture2D" uid="uid://ca4u4slhbnjd8" path="res://composants/objets/balle/balle_spectrale/08.png" id="3_mhuq7"]
+[ext_resource type="AudioStream" uid="uid://cfmm8vsdh4ahu" path="res://composants/objets/balle/collision_sfx.wav" id="4_tx8jq"]
 
 [sub_resource type="CircleShape2D" id="CircleShape2D_lab73"]
 radius = 5.42
@@ -29,3 +30,10 @@ texture = ExtResource("3_mhuq7")
 
 [node name="Forme" type="CollisionShape2D" parent="."]
 shape = SubResource("CircleShape2D_lab73")
+
+[node name="BruitRebond" type="AudioStreamPlayer2D" parent="."]
+stream = ExtResource("4_tx8jq")
+volume_db = 7.429
+bus = &"Bruits"
+
+[connection signal="rebondi" from="." to="BruitRebond" method="play"]