Add background music to Select Stage

This commit is contained in:
Moe Poi ~ 2023-10-25 23:14:53 +07:00
parent c1b39cfbd7
commit 024a514316
4 changed files with 29 additions and 4 deletions

View file

@ -12,8 +12,8 @@ dest_files=["res://.godot/imported/main.mp3-c46db6e147d57850afffd45a8e1df9b5.mp3
[params] [params]
loop=false loop=true
loop_offset=0 loop_offset=0.0
bpm=0 bpm=0.0
beat_count=0 beat_count=0
bar_beats=4 bar_beats=4

Binary file not shown.

View file

@ -0,0 +1,19 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://dwm10m707ygyb"
path="res://.godot/imported/select-stage.mp3-4a8f52d83bc1e327b9d596c0c514dcac.mp3str"
[deps]
source_file="res://assets/audio/select-stage.mp3"
dest_files=["res://.godot/imported/select-stage.mp3-4a8f52d83bc1e327b9d596c0c514dcac.mp3str"]
[params]
loop=true
loop_offset=0.0
bpm=0.0
beat_count=0
bar_beats=4

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=11 format=3 uid="uid://cwf2fhvjfq7xg"] [gd_scene load_steps=12 format=3 uid="uid://cwf2fhvjfq7xg"]
[ext_resource type="Script" path="res://scripts/ui/select_stage.gd" id="1_t86bq"] [ext_resource type="Script" path="res://scripts/ui/select_stage.gd" id="1_t86bq"]
[ext_resource type="Theme" uid="uid://bt3yyqwlp4f7j" path="res://themes/title_text.tres" id="2_gqow0"] [ext_resource type="Theme" uid="uid://bt3yyqwlp4f7j" path="res://themes/title_text.tres" id="2_gqow0"]
@ -10,6 +10,7 @@
[ext_resource type="Texture2D" uid="uid://cushhcqgpt2wi" path="res://assets/backgrounds/stage-4.png" id="8_jnehq"] [ext_resource type="Texture2D" uid="uid://cushhcqgpt2wi" path="res://assets/backgrounds/stage-4.png" id="8_jnehq"]
[ext_resource type="Texture2D" uid="uid://dflfg140pfdfj" path="res://assets/backgrounds/stage-5.png" id="9_jt253"] [ext_resource type="Texture2D" uid="uid://dflfg140pfdfj" path="res://assets/backgrounds/stage-5.png" id="9_jt253"]
[ext_resource type="Texture2D" uid="uid://cvw4fruerjwk6" path="res://assets/backgrounds/stage-6.png" id="10_xmmdy"] [ext_resource type="Texture2D" uid="uid://cvw4fruerjwk6" path="res://assets/backgrounds/stage-6.png" id="10_xmmdy"]
[ext_resource type="AudioStream" uid="uid://dwm10m707ygyb" path="res://assets/audio/select-stage.mp3" id="11_1rv5g"]
[node name="SelectStage" type="Control"] [node name="SelectStage" type="Control"]
layout_mode = 3 layout_mode = 3
@ -212,6 +213,11 @@ stretch_mode = 5
layout_mode = 2 layout_mode = 2
text = "6" text = "6"
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("11_1rv5g")
volume_db = 1.0
autoplay = true
[connection signal="pressed" from="Panel/MarginContainer/VBoxContainer/HBoxContainer/Back" to="." method="_on_back_pressed"] [connection signal="pressed" from="Panel/MarginContainer/VBoxContainer/HBoxContainer/Back" to="." method="_on_back_pressed"]
[connection signal="pressed" from="Panel/MarginContainer/VBoxContainer/HBoxContainer2/MarginContainer/Stage 1" to="." method="_on_stage_1_pressed"] [connection signal="pressed" from="Panel/MarginContainer/VBoxContainer/HBoxContainer2/MarginContainer/Stage 1" to="." method="_on_stage_1_pressed"]
[connection signal="pressed" from="Panel/MarginContainer/VBoxContainer/HBoxContainer2/MarginContainer2/Stage 2" to="." method="_on_stage_2_pressed"] [connection signal="pressed" from="Panel/MarginContainer/VBoxContainer/HBoxContainer2/MarginContainer2/Stage 2" to="." method="_on_stage_2_pressed"]