瀏覽代碼

:sparkles: Ajoute un bruit d'explosion pour la brique

DricomDragon 10 月之前
父節點
當前提交
60db4cc3b9

+ 2 - 3
godot/effets/eclatement_brique/eclatement_effet.tscn

@@ -2,7 +2,7 @@
 
 [ext_resource type="Script" path="res://effets/eclatement_brique/eclatement_animation.gd" id="1_jaiil"]
 [ext_resource type="Texture2D" uid="uid://dl4u6xp80b3pl" path="res://effets/eclatement_brique/sprite.png" id="2_r88cx"]
-[ext_resource type="AudioStream" uid="uid://cfmm8vsdh4ahu" path="res://effets/eclatement_brique/collision_sfx.wav" id="4_ly16a"]
+[ext_resource type="AudioStream" uid="uid://dx5m18liryte6" path="res://effets/eclatement_brique/explosion.wav" id="3_aawn6"]
 
 [sub_resource type="AtlasTexture" id="AtlasTexture_k8omh"]
 atlas = ExtResource("2_r88cx")
@@ -191,8 +191,7 @@ autoplay = "eclate"
 centered = false
 
 [node name="Bruit" type="AudioStreamPlayer2D" parent="."]
-stream = ExtResource("4_ly16a")
-volume_db = 6.0
+stream = ExtResource("3_aawn6")
 autoplay = true
 bus = &"Bruits"
 

二進制
godot/effets/eclatement_brique/explosion.wav


+ 24 - 0
godot/effets/eclatement_brique/explosion.wav.import

@@ -0,0 +1,24 @@
+[remap]
+
+importer="wav"
+type="AudioStreamWAV"
+uid="uid://dx5m18liryte6"
+path="res://.godot/imported/explosion.wav-07aa06bb1d4956dd26b9f639e095fecb.sample"
+
+[deps]
+
+source_file="res://effets/eclatement_brique/explosion.wav"
+dest_files=["res://.godot/imported/explosion.wav-07aa06bb1d4956dd26b9f639e095fecb.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=0