Add background music to Main Menu
This commit is contained in:
parent
fb2b6b96af
commit
503f8166eb
3 changed files with 26 additions and 1 deletions
BIN
assets/audio/main.mp3
Normal file
BIN
assets/audio/main.mp3
Normal file
Binary file not shown.
19
assets/audio/main.mp3.import
Normal file
19
assets/audio/main.mp3.import
Normal file
|
@ -0,0 +1,19 @@
|
|||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
uid="uid://dhydsnb0wpl7t"
|
||||
path="res://.godot/imported/main.mp3-c46db6e147d57850afffd45a8e1df9b5.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/audio/main.mp3"
|
||||
dest_files=["res://.godot/imported/main.mp3-c46db6e147d57850afffd45a8e1df9b5.mp3str"]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
||||
bpm=0
|
||||
beat_count=0
|
||||
bar_beats=4
|
|
@ -1,9 +1,10 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://b8pdp1x331u5c"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://b8pdp1x331u5c"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://c1qbpse383sys" path="res://assets/backgrounds/main-bg.png" id="1_28cjd"]
|
||||
[ext_resource type="Script" path="res://scripts/ui/main_menu.gd" id="1_6741p"]
|
||||
[ext_resource type="Texture2D" uid="uid://dm8ug0o5361wn" path="res://assets/icons/logo.png" id="2_l26fo"]
|
||||
[ext_resource type="Theme" uid="uid://caw53lcko4jnt" path="res://themes/button.tres" id="4_4d3eq"]
|
||||
[ext_resource type="AudioStream" uid="uid://dhydsnb0wpl7t" path="res://assets/audio/main.mp3" id="5_xkvpi"]
|
||||
|
||||
[node name="MainMenu" type="Control"]
|
||||
layout_mode = 3
|
||||
|
@ -87,6 +88,11 @@ size_flags_horizontal = 10
|
|||
theme = ExtResource("4_4d3eq")
|
||||
text = "Exit"
|
||||
|
||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("5_xkvpi")
|
||||
volume_db = 1.0
|
||||
autoplay = true
|
||||
|
||||
[connection signal="pressed" from="TextureRect/Panel/MarginContainer/VBoxContainer/VBoxContainer/StartGame" to="." method="_on_start_game_pressed"]
|
||||
[connection signal="pressed" from="TextureRect/Panel/MarginContainer/VBoxContainer/VBoxContainer/HowToPlay" to="." method="_on_how_to_play_pressed"]
|
||||
[connection signal="pressed" from="TextureRect/Panel/MarginContainer/VBoxContainer/HBoxContainer/About" to="." method="_on_about_pressed"]
|
||||
|
|
Loading…
Reference in a new issue