Add main theme music functionality; implement enable/disable scripts and audio resources
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=26 format=3 uid="uid://bfil8sd154327"]
|
||||
[gd_scene load_steps=27 format=3 uid="uid://bfil8sd154327"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://t71ewkpa5uqs" path="res://Scenes/Main/Main.cs" id="1_p8rbg"]
|
||||
[ext_resource type="Script" uid="uid://b77vh831r1e3c" path="res://Scenes/Main/MiraclePanel.cs" id="2_hcu3t"]
|
||||
@@ -23,6 +23,7 @@
|
||||
[ext_resource type="Script" uid="uid://cw8gpeaq3yfjn" path="res://Scripts/Components/RoadManager.cs" id="19_qdkat"]
|
||||
[ext_resource type="Script" uid="uid://2ipbgwlx1ld1" path="res://Scripts/Components/EventManager.cs" id="22_iwp64"]
|
||||
[ext_resource type="PackedScene" uid="uid://gdejd44km3co" path="res://Scenes/UI/event_popup.tscn" id="23_4etfk"]
|
||||
[ext_resource type="Script" uid="uid://dvmrpbba7plsf" path="res://Scripts/EnableMainThemeMusic.cs" id="24_4etfk"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_xggvw"]
|
||||
bg_color = Color(0, 0, 0, 0.733333)
|
||||
@@ -5691,3 +5692,6 @@ script = ExtResource("22_iwp64")
|
||||
_eventPopupScene = ExtResource("23_4etfk")
|
||||
_eventPopupContainer = NodePath("../Notification Layer/CenterContainer")
|
||||
metadata/_custom_type_script = "uid://2ipbgwlx1ld1"
|
||||
|
||||
[node name="Node" type="Node" parent="."]
|
||||
script = ExtResource("24_4etfk")
|
||||
|
@@ -1,7 +1,9 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://kcla4knp80mq"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://kcla4knp80mq"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cbdokimy0qarg" path="res://Scripts/MainMenu.cs" id="1_8fo1c"]
|
||||
[ext_resource type="PackedScene" uid="uid://cmhvni5njpmee" path="res://Scenes/main_menu.tscn" id="2_ek8ke"]
|
||||
[ext_resource type="AudioStream" uid="uid://defdxbv24q6l1" path="res://Sfx/The Hollow Throne.mp3" id="3_ek8ke"]
|
||||
[ext_resource type="Script" uid="uid://bif3eyfa1lgl4" path="res://Scripts/DisableMainThemeMusic.cs" id="4_eoghk"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_i2yjh"]
|
||||
bg_color = Color(0, 0, 0, 1)
|
||||
@@ -44,3 +46,12 @@ vertical_alignment = 1
|
||||
layout_mode = 2
|
||||
text = "Quit"
|
||||
flat = true
|
||||
|
||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("3_ek8ke")
|
||||
volume_db = -3.0
|
||||
autoplay = true
|
||||
parameters/looping = true
|
||||
|
||||
[node name="Node" type="Node" parent="."]
|
||||
script = ExtResource("4_eoghk")
|
||||
|
@@ -1,9 +1,10 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://cmhvni5njpmee"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://cmhvni5njpmee"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cbdokimy0qarg" path="res://Scripts/MainMenu.cs" id="1_1ehe0"]
|
||||
[ext_resource type="FontFile" uid="uid://wofoiaejxgsp" path="res://Fonts/Playful Boxes.otf" id="1_28flt"]
|
||||
[ext_resource type="Texture2D" uid="uid://d2wi2cs20q2b6" path="res://Parasitic_God.png" id="1_48xlc"]
|
||||
[ext_resource type="PackedScene" uid="uid://kvpk5wrcp3rv" path="res://Scenes/tutorial_scene.tscn" id="2_ce3w2"]
|
||||
[ext_resource type="Script" uid="uid://dvmrpbba7plsf" path="res://Scripts/EnableMainThemeMusic.cs" id="5_n45e2"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_48xlc"]
|
||||
font = ExtResource("1_28flt")
|
||||
@@ -65,3 +66,6 @@ text = "Play"
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 30
|
||||
text = "Exit"
|
||||
|
||||
[node name="Node" type="Node" parent="."]
|
||||
script = ExtResource("5_n45e2")
|
||||
|
10
Scenes/main_theme_music.tscn
Normal file
10
Scenes/main_theme_music.tscn
Normal file
@@ -0,0 +1,10 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://b7we8gtene47t"]
|
||||
|
||||
[ext_resource type="AudioStream" uid="uid://wm3vocs0kkk8" path="res://Sfx/MainTheme.mp3" id="1_f0c52"]
|
||||
|
||||
[node name="MainThemeMusic" type="AudioStreamPlayer"]
|
||||
process_mode = 3
|
||||
stream = ExtResource("1_f0c52")
|
||||
volume_db = -5.0
|
||||
autoplay = true
|
||||
parameters/looping = true
|
@@ -1,7 +1,9 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://dtuyx1f5fa8sy"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://dtuyx1f5fa8sy"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cbdokimy0qarg" path="res://Scripts/MainMenu.cs" id="1_a00f1"]
|
||||
[ext_resource type="PackedScene" uid="uid://cmhvni5njpmee" path="res://Scenes/main_menu.tscn" id="2_awi1s"]
|
||||
[ext_resource type="AudioStream" uid="uid://46kqkf4ckqek" path="res://Sfx/Ascend Beyond.mp3" id="3_awi1s"]
|
||||
[ext_resource type="Script" uid="uid://bif3eyfa1lgl4" path="res://Scripts/DisableMainThemeMusic.cs" id="4_bwc64"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_i2yjh"]
|
||||
bg_color = Color(0, 0, 0, 1)
|
||||
@@ -43,3 +45,12 @@ vertical_alignment = 1
|
||||
layout_mode = 2
|
||||
text = "Quit"
|
||||
flat = true
|
||||
|
||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("3_awi1s")
|
||||
volume_db = -3.0
|
||||
autoplay = true
|
||||
parameters/looping = true
|
||||
|
||||
[node name="Node" type="Node" parent="."]
|
||||
script = ExtResource("4_bwc64")
|
||||
|
Reference in New Issue
Block a user