diff options
author | Logan <logan@cflip.net> | 2023-02-01 17:44:17 -0700 |
---|---|---|
committer | Logan <logan@cflip.net> | 2023-02-01 17:44:17 -0700 |
commit | dd91a66238b1df039321c9a11e7c038e50b45c21 (patch) | |
tree | 29a8c79a5155a0f9e7fb4e88f80ebdf7bbad5bda /scenes/mainmenu.tscn | |
parent | 0d0be8268275ca42dae0899e405bcc000c445a20 (diff) |
Added music scene singleton
Diffstat (limited to 'scenes/mainmenu.tscn')
-rw-r--r-- | scenes/mainmenu.tscn | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/scenes/mainmenu.tscn b/scenes/mainmenu.tscn index f3a0776..492435a 100644 --- a/scenes/mainmenu.tscn +++ b/scenes/mainmenu.tscn @@ -1,6 +1,9 @@ -[gd_scene load_steps=2 format=2] +[gd_scene load_steps=5 format=2] [ext_resource path="res://scripts/mainmenu.gd" type="Script" id=1] +[ext_resource path="res://sound/announcer_mainmenu.ogg" type="AudioStream" id=2] +[ext_resource path="res://sound/unused_music.ogg" type="AudioStream" id=3] +[ext_resource path="res://theme_data/interface_theme.tres" type="Theme" id=4] [node name="Menu" type="Control"] margin_right = 214.0 @@ -74,6 +77,16 @@ margin_right = 100.0 margin_bottom = 152.0 text = "Quit" +[node name="MusicAudio" type="AudioStreamPlayer" parent="."] +stream = ExtResource( 3 ) +volume_db = -30.0 +stream_paused = true + +[node name="AnnouncerAudio" type="AudioStreamPlayer" parent="."] +stream = ExtResource( 2 ) +volume_db = -20.0 +autoplay = true + [connection signal="pressed" from="Control/VBoxContainer/StartButton" to="." method="_on_StartButton_pressed"] [connection signal="pressed" from="Control/VBoxContainer/LeaderboardButton" to="." method="_on_LeaderboardButton_pressed"] [connection signal="pressed" from="Control/VBoxContainer/HelpButton" to="." method="_on_HelpButton_pressed"] |