瀏覽代碼

Joue une musique de fond

Identique menu et niveau.
DricomDragon 11 月之前
父節點
當前提交
b3de1be1f6

+ 1 - 1
godot/composants/objets/arene/arene.tscn

@@ -1,6 +1,6 @@
 [gd_scene load_steps=4 format=3 uid="uid://b28d5a4be36qa"]
 
-[ext_resource type="PhysicsMaterial" uid="uid://c6bddricwmcxx" path="res://commun/materiaux/metal.tres" id="1_jdr4h"]
+[ext_resource type="PhysicsMaterial" uid="uid://c6bddricwmcxx" path="res://ressources/materiaux/metal.tres" id="1_jdr4h"]
 
 [sub_resource type="RectangleShape2D" id="RectangleShape2D_cjamf"]
 size = Vector2(820, 200)

+ 1 - 1
godot/composants/objets/brique/brique.tscn

@@ -1,6 +1,6 @@
 [gd_scene load_steps=5 format=3 uid="uid://brd8yid3l7wgm"]
 
-[ext_resource type="PhysicsMaterial" uid="uid://c6bddricwmcxx" path="res://commun/materiaux/metal.tres" id="1_n3uct"]
+[ext_resource type="PhysicsMaterial" uid="uid://c6bddricwmcxx" path="res://ressources/materiaux/metal.tres" id="1_n3uct"]
 [ext_resource type="Script" path="res://composants/objets/brique/brique.gd" id="2_gkrr0"]
 [ext_resource type="Texture2D" uid="uid://r7iyjvdve5a1" path="res://composants/objets/brique/01.png" id="3_fmy5a"]
 

+ 1 - 1
godot/composants/objets/raquette/raquette.tscn

@@ -1,6 +1,6 @@
 [gd_scene load_steps=5 format=3 uid="uid://cpo1b44exbbyf"]
 
-[ext_resource type="PhysicsMaterial" uid="uid://c6bddricwmcxx" path="res://commun/materiaux/metal.tres" id="1_0thl6"]
+[ext_resource type="PhysicsMaterial" uid="uid://c6bddricwmcxx" path="res://ressources/materiaux/metal.tres" id="1_0thl6"]
 [ext_resource type="Script" path="res://composants/objets/raquette/raquette.gd" id="2_t4r17"]
 [ext_resource type="Texture2D" uid="uid://blc5i1iovhwuw" path="res://composants/objets/raquette/sprite.png" id="3_n2v48"]
 

+ 7 - 2
godot/exec/game.tscn

@@ -1,10 +1,15 @@
-[gd_scene load_steps=3 format=3 uid="uid://oem0iyyskwcr"]
+[gd_scene load_steps=4 format=3 uid="uid://oem0iyyskwcr"]
 
 [ext_resource type="PackedScene" uid="uid://cnbv6y2ikfysg" path="res://exec/choix/monde.tscn" id="1_8x2gm"]
 [ext_resource type="PackedScene" uid="uid://cvsfngjyx7xvw" path="res://composants/interface/pause/pause_menu.tscn" id="2_petgp"]
+[ext_resource type="AudioStream" uid="uid://behp4ubyhxee0" path="res://ressources/musiques/atelier_godot_menu-loop.ogg" id="3_aigju"]
 
 [node name="Game" type="Node"]
 
-[node name="Monde" parent="." instance=ExtResource("1_8x2gm")]
+[node name="ChoixNiveau" parent="." instance=ExtResource("1_8x2gm")]
 
 [node name="PauseMenu" parent="." instance=ExtResource("2_petgp")]
+
+[node name="Musique" type="AudioStreamPlayer" parent="."]
+stream = ExtResource("3_aigju")
+autoplay = true

godot/commun/materiaux/metal.tres → godot/ressources/materiaux/metal.tres


二進制
godot/ressources/musiques/atelier_godot_menu-loop.ogg


+ 19 - 0
godot/ressources/musiques/atelier_godot_menu-loop.ogg.import

@@ -0,0 +1,19 @@
+[remap]
+
+importer="oggvorbisstr"
+type="AudioStreamOggVorbis"
+uid="uid://behp4ubyhxee0"
+path="res://.godot/imported/atelier_godot_menu-loop.ogg-78d645c99906584f57277320bbe98b48.oggvorbisstr"
+
+[deps]
+
+source_file="res://ressources/musiques/atelier_godot_menu-loop.ogg"
+dest_files=["res://.godot/imported/atelier_godot_menu-loop.ogg-78d645c99906584f57277320bbe98b48.oggvorbisstr"]
+
+[params]
+
+loop=true
+loop_offset=0
+bpm=0
+beat_count=0
+bar_beats=4