|
@@ -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"]
|