浏览代码

Creee deux bus audio

- Un pour la musique
- Un pour les bruits
DricomDragon 11 月之前
父节点
当前提交
10372b07cc
共有 3 个文件被更改,包括 17 次插入0 次删除
  1. 15 0
      godot/default_bus_layout.tres
  2. 1 0
      godot/effets/eclatement_brique/eclatement_effet.tscn
  3. 1 0
      godot/exec/game.tscn

+ 15 - 0
godot/default_bus_layout.tres

@@ -0,0 +1,15 @@
+[gd_resource type="AudioBusLayout" format=3 uid="uid://5582jaxf6lii"]
+
+[resource]
+bus/1/name = &"Bruits"
+bus/1/solo = false
+bus/1/mute = false
+bus/1/bypass_fx = false
+bus/1/volume_db = 0.0
+bus/1/send = &"Master"
+bus/2/name = &"Musique"
+bus/2/solo = false
+bus/2/mute = false
+bus/2/bypass_fx = false
+bus/2/volume_db = 0.0
+bus/2/send = &"Master"

+ 1 - 0
godot/effets/eclatement_brique/eclatement_effet.tscn

@@ -194,6 +194,7 @@ centered = false
 stream = ExtResource("4_ly16a")
 volume_db = 12.0
 autoplay = true
+bus = &"Bruits"
 
 [connection signal="animation_finished" from="Animation" to="." method="_quand_sous_effet_termine"]
 [connection signal="finished" from="Bruit" to="." method="_quand_sous_effet_termine"]

+ 1 - 0
godot/exec/game.tscn

@@ -15,6 +15,7 @@
 [node name="Musique" type="AudioStreamPlayer" parent="."]
 stream = ExtResource("3_aigju")
 autoplay = true
+bus = &"Musique"
 script = ExtResource("4_0hv66")
 musique_niveau = ExtResource("5_7aios")