2023-04-11 14:54:04 +00:00
|
|
|
[gd_scene load_steps=16 format=3 uid="uid://cukyb513fah1u"]
|
2023-04-09 15:57:37 +00:00
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://Scripts/UI/MainMenuManager.gd" id="1_qepq0"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://c4btepmue6d7p" path="res://Scenes/Game.tscn" id="2_28004"]
|
2023-04-09 17:06:45 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://cbfcolm6mjolp" path="res://Prefabs/Settings Menu.tscn" id="3_r3r61"]
|
2023-04-10 21:31:07 +00:00
|
|
|
[ext_resource type="Theme" uid="uid://babphdknr2kkd" path="res://Assets/UI/Theme.tres" id="4_bmt8e"]
|
2023-04-11 14:54:04 +00:00
|
|
|
[ext_resource type="Texture2D" uid="uid://tjxkew3m4v8m" path="res://Assets/Sprites/UI/Shadow.png" id="5_wt601"]
|
2023-04-10 21:31:07 +00:00
|
|
|
[ext_resource type="Texture2D" uid="uid://ojlfqxj5bilo" path="res://Assets/Sprites/Jesus/jesus_spritesheet.png" id="7_g28i1"]
|
2023-04-11 08:33:19 +00:00
|
|
|
[ext_resource type="Texture2D" uid="uid://dlr823rtwhtq2" path="res://Assets/Sprites/EasterEgg.png" id="7_wokip"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://c54k7fn4fu42s" path="res://Assets/Sprites/Bunny/good_bunny_spritesheet.png" id="8_5vrmg"]
|
2023-04-10 21:31:07 +00:00
|
|
|
[ext_resource type="AudioStream" uid="uid://c6nf5s6xy2uii" path="res://Assets/Music/omw-to-beat-the-big-bad.wav" id="12_i62fw"]
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_5uvie"]
|
|
|
|
bg_color = Color(0.439216, 0.631373, 0.537255, 1)
|
|
|
|
|
2023-04-11 08:33:19 +00:00
|
|
|
[sub_resource type="Animation" id="Animation_iq7o3"]
|
|
|
|
resource_name = "Walk"
|
|
|
|
length = 0.8
|
|
|
|
loop_mode = 1
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath(".:frame")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7),
|
|
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1),
|
|
|
|
"update": 1,
|
|
|
|
"values": [0, 1, 2, 3, 4, 5, 6, 7]
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_xufdy"]
|
|
|
|
_data = {
|
|
|
|
"Autostart": SubResource("Animation_iq7o3")
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id="Animation_53kbk"]
|
|
|
|
resource_name = "Autostart"
|
2023-04-11 14:54:04 +00:00
|
|
|
length = 0.5
|
2023-04-11 08:33:19 +00:00
|
|
|
loop_mode = 1
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath(".:frame")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4),
|
|
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
|
|
|
|
"update": 1,
|
|
|
|
"values": [0, 1, 2, 3, 4]
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_5tgwk"]
|
|
|
|
_data = {
|
|
|
|
"Autostart": SubResource("Animation_53kbk")
|
|
|
|
}
|
|
|
|
|
2023-04-11 14:54:04 +00:00
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_h5db4"]
|
2023-04-11 15:00:09 +00:00
|
|
|
bg_color = Color(0, 0, 0, 0.313726)
|
2023-04-11 14:54:04 +00:00
|
|
|
|
|
|
|
[node name="MainMenu" type="Control" node_paths=PackedStringArray("default_focus")]
|
|
|
|
layout_mode = 3
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
size_flags_horizontal = 6
|
|
|
|
size_flags_vertical = 3
|
2023-04-09 15:57:37 +00:00
|
|
|
script = ExtResource("1_qepq0")
|
|
|
|
game_scene = ExtResource("2_28004")
|
|
|
|
settings_scene = ExtResource("3_r3r61")
|
2023-04-11 14:54:04 +00:00
|
|
|
default_focus = NodePath("VBoxContainer/MarginBox2/ButtonsVbox/PlayButton")
|
|
|
|
autostart_animations = Array[NodePath]([NodePath("Decorations/Left Decor/Jesus/AnimationPlayer"), NodePath("Decorations/Right Decor/GoodBunny/AnimationPlayer")])
|
2023-04-09 12:00:52 +00:00
|
|
|
|
2023-04-11 14:54:04 +00:00
|
|
|
[node name="Panel" type="Panel" parent="."]
|
|
|
|
layout_mode = 1
|
2023-04-09 12:00:52 +00:00
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
2023-04-10 21:31:07 +00:00
|
|
|
theme = ExtResource("4_bmt8e")
|
|
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_5uvie")
|
2023-04-09 12:00:52 +00:00
|
|
|
|
|
|
|
[node name="Decorations" type="Control" parent="."]
|
2023-04-11 14:54:04 +00:00
|
|
|
layout_mode = 1
|
2023-04-09 12:00:52 +00:00
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
|
|
|
|
[node name="Left Decor" type="CenterContainer" parent="Decorations"]
|
|
|
|
custom_minimum_size = Vector2(576, 0)
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 9
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_vertical = 2
|
|
|
|
|
|
|
|
[node name="Shadow" type="Sprite2D" parent="Decorations/Left Decor"]
|
2023-04-11 14:54:04 +00:00
|
|
|
position = Vector2(272, 686)
|
|
|
|
scale = Vector2(10, 10)
|
|
|
|
texture = ExtResource("5_wt601")
|
2023-04-09 12:00:52 +00:00
|
|
|
|
2023-04-10 21:31:07 +00:00
|
|
|
[node name="Jesus" type="Sprite2D" parent="Decorations/Left Decor"]
|
2023-04-11 14:54:04 +00:00
|
|
|
position = Vector2(279, 408)
|
|
|
|
scale = Vector2(10, 10)
|
2023-04-10 21:31:07 +00:00
|
|
|
texture = ExtResource("7_g28i1")
|
|
|
|
hframes = 8
|
|
|
|
vframes = 4
|
|
|
|
|
2023-04-11 08:33:19 +00:00
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="Decorations/Left Decor/Jesus"]
|
|
|
|
libraries = {
|
|
|
|
"": SubResource("AnimationLibrary_xufdy")
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="EasterEgg" type="Sprite2D" parent="Decorations/Left Decor"]
|
2023-04-11 14:54:04 +00:00
|
|
|
position = Vector2(142, 555)
|
|
|
|
scale = Vector2(10, 10)
|
2023-04-11 08:33:19 +00:00
|
|
|
texture = ExtResource("7_wokip")
|
|
|
|
hframes = 6
|
|
|
|
|
|
|
|
[node name="EasterEgg2" type="Sprite2D" parent="Decorations/Left Decor"]
|
2023-04-11 14:54:04 +00:00
|
|
|
position = Vector2(450, 572)
|
|
|
|
rotation = 0.633555
|
|
|
|
scale = Vector2(10, 10)
|
2023-04-11 08:33:19 +00:00
|
|
|
texture = ExtResource("7_wokip")
|
|
|
|
hframes = 6
|
|
|
|
frame = 4
|
2023-04-09 12:00:52 +00:00
|
|
|
|
|
|
|
[node name="Right Decor" type="CenterContainer" parent="Decorations"]
|
|
|
|
custom_minimum_size = Vector2(576, 0)
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 11
|
|
|
|
anchor_left = 1.0
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 0
|
|
|
|
grow_vertical = 2
|
|
|
|
|
2023-04-11 14:54:04 +00:00
|
|
|
[node name="Shadow" type="Sprite2D" parent="Decorations/Right Decor"]
|
|
|
|
position = Vector2(300, 681)
|
|
|
|
scale = Vector2(10, 10)
|
|
|
|
texture = ExtResource("5_wt601")
|
|
|
|
|
|
|
|
[node name="EasterEgg" type="Sprite2D" parent="Decorations/Right Decor"]
|
|
|
|
position = Vector2(416, 537)
|
|
|
|
rotation = 0.289725
|
|
|
|
scale = Vector2(10, 10)
|
|
|
|
texture = ExtResource("7_wokip")
|
|
|
|
hframes = 6
|
|
|
|
frame = 2
|
2023-04-09 12:00:52 +00:00
|
|
|
|
|
|
|
[node name="GoodBunny" type="Sprite2D" parent="Decorations/Right Decor"]
|
2023-04-11 14:54:04 +00:00
|
|
|
position = Vector2(235, 579)
|
|
|
|
scale = Vector2(10, 10)
|
2023-04-11 08:33:19 +00:00
|
|
|
texture = ExtResource("8_5vrmg")
|
|
|
|
hframes = 5
|
|
|
|
vframes = 4
|
|
|
|
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="Decorations/Right Decor/GoodBunny"]
|
|
|
|
libraries = {
|
|
|
|
"": SubResource("AnimationLibrary_5tgwk")
|
|
|
|
}
|
|
|
|
|
2023-04-11 14:54:04 +00:00
|
|
|
[node name="Panel" type="Panel" parent="Decorations"]
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_h5db4")
|
2023-04-09 12:00:52 +00:00
|
|
|
|
2023-04-11 14:54:04 +00:00
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
|
|
|
layout_mode = 1
|
2023-04-09 12:00:52 +00:00
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
2023-04-11 14:54:04 +00:00
|
|
|
theme_override_constants/separation = 0
|
2023-04-09 12:00:52 +00:00
|
|
|
|
2023-04-11 14:54:04 +00:00
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer"]
|
2023-04-09 12:00:52 +00:00
|
|
|
layout_mode = 2
|
2023-04-11 14:54:04 +00:00
|
|
|
theme_override_constants/margin_left = 32
|
|
|
|
theme_override_constants/margin_top = 32
|
|
|
|
theme_override_constants/margin_right = 32
|
|
|
|
theme_override_constants/margin_bottom = 32
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/MarginContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 5
|
|
|
|
theme_override_font_sizes/font_size = 96
|
|
|
|
text = "Happy Easter Game Thing"
|
2023-04-09 12:00:52 +00:00
|
|
|
horizontal_alignment = 1
|
2023-04-11 14:54:04 +00:00
|
|
|
autowrap_mode = 2
|
|
|
|
|
|
|
|
[node name="MarginBox2" type="MarginContainer" parent="VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_vertical = 3
|
|
|
|
theme_override_constants/margin_left = 32
|
|
|
|
theme_override_constants/margin_top = 32
|
|
|
|
theme_override_constants/margin_right = 32
|
|
|
|
theme_override_constants/margin_bottom = 32
|
2023-04-09 12:00:52 +00:00
|
|
|
|
2023-04-11 14:54:04 +00:00
|
|
|
[node name="ButtonsVbox" type="VBoxContainer" parent="VBoxContainer/MarginBox2"]
|
2023-04-09 12:00:52 +00:00
|
|
|
custom_minimum_size = Vector2(0, 495)
|
|
|
|
layout_mode = 2
|
2023-04-10 21:31:07 +00:00
|
|
|
size_flags_horizontal = 4
|
|
|
|
theme = ExtResource("4_bmt8e")
|
2023-04-11 14:54:04 +00:00
|
|
|
theme_override_constants/separation = 8
|
2023-04-09 12:00:52 +00:00
|
|
|
alignment = 1
|
|
|
|
|
2023-04-11 19:51:55 +00:00
|
|
|
[node name="Spacer" type="MarginContainer" parent="VBoxContainer/MarginBox2/ButtonsVbox"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
2023-04-11 14:54:04 +00:00
|
|
|
[node name="PlayButton" type="Button" parent="VBoxContainer/MarginBox2/ButtonsVbox"]
|
2023-04-09 12:00:52 +00:00
|
|
|
custom_minimum_size = Vector2(0, 40)
|
|
|
|
layout_mode = 2
|
|
|
|
focus_neighbor_left = NodePath("../QuitButton")
|
|
|
|
focus_neighbor_top = NodePath("../QuitButton")
|
|
|
|
focus_neighbor_right = NodePath("../SettingsButton")
|
|
|
|
focus_neighbor_bottom = NodePath("../SettingsButton")
|
|
|
|
focus_next = NodePath("../SettingsButton")
|
|
|
|
focus_previous = NodePath("../QuitButton")
|
2023-04-10 21:31:07 +00:00
|
|
|
theme = ExtResource("4_bmt8e")
|
|
|
|
theme_override_font_sizes/font_size = 64
|
2023-04-09 12:00:52 +00:00
|
|
|
text = "Play"
|
|
|
|
|
2023-04-11 14:54:04 +00:00
|
|
|
[node name="SettingsButton" type="Button" parent="VBoxContainer/MarginBox2/ButtonsVbox"]
|
2023-04-09 12:00:52 +00:00
|
|
|
custom_minimum_size = Vector2(0, 40)
|
|
|
|
layout_mode = 2
|
|
|
|
focus_neighbor_left = NodePath("../PlayButton")
|
|
|
|
focus_neighbor_top = NodePath("../PlayButton")
|
|
|
|
focus_neighbor_right = NodePath("../AboutButton")
|
|
|
|
focus_neighbor_bottom = NodePath("../AboutButton")
|
|
|
|
focus_next = NodePath("../AboutButton")
|
|
|
|
focus_previous = NodePath("../PlayButton")
|
2023-04-10 21:31:07 +00:00
|
|
|
theme = ExtResource("4_bmt8e")
|
|
|
|
theme_override_font_sizes/font_size = 64
|
2023-04-09 12:00:52 +00:00
|
|
|
text = "Settings"
|
|
|
|
|
2023-04-11 14:54:04 +00:00
|
|
|
[node name="AboutButton" type="Button" parent="VBoxContainer/MarginBox2/ButtonsVbox"]
|
2023-04-09 12:00:52 +00:00
|
|
|
custom_minimum_size = Vector2(0, 40)
|
|
|
|
layout_mode = 2
|
|
|
|
focus_neighbor_left = NodePath("../SettingsButton")
|
|
|
|
focus_neighbor_top = NodePath("../SettingsButton")
|
|
|
|
focus_neighbor_right = NodePath("../QuitButton")
|
|
|
|
focus_neighbor_bottom = NodePath("../QuitButton")
|
|
|
|
focus_next = NodePath("../QuitButton")
|
|
|
|
focus_previous = NodePath("../SettingsButton")
|
2023-04-10 21:31:07 +00:00
|
|
|
theme = ExtResource("4_bmt8e")
|
|
|
|
theme_override_font_sizes/font_size = 64
|
2023-04-09 12:00:52 +00:00
|
|
|
text = "About"
|
|
|
|
|
2023-04-11 19:51:55 +00:00
|
|
|
[node name="Spacer2" type="MarginContainer" parent="VBoxContainer/MarginBox2/ButtonsVbox"]
|
2023-04-11 14:54:04 +00:00
|
|
|
layout_mode = 2
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
|
|
|
[node name="QuitButton" type="Button" parent="VBoxContainer/MarginBox2/ButtonsVbox"]
|
2023-04-09 12:00:52 +00:00
|
|
|
custom_minimum_size = Vector2(0, 40)
|
|
|
|
layout_mode = 2
|
|
|
|
focus_neighbor_left = NodePath("../AboutButton")
|
|
|
|
focus_neighbor_top = NodePath("../AboutButton")
|
|
|
|
focus_neighbor_right = NodePath("../PlayButton")
|
|
|
|
focus_neighbor_bottom = NodePath("../PlayButton")
|
|
|
|
focus_next = NodePath("../PlayButton")
|
|
|
|
focus_previous = NodePath("../AboutButton")
|
2023-04-10 21:31:07 +00:00
|
|
|
theme = ExtResource("4_bmt8e")
|
|
|
|
theme_override_font_sizes/font_size = 64
|
2023-04-09 12:00:52 +00:00
|
|
|
text = "Quit"
|
|
|
|
|
2023-04-09 15:57:37 +00:00
|
|
|
[node name="MusicPlayer" type="AudioStreamPlayer" parent="."]
|
2023-04-10 21:31:07 +00:00
|
|
|
stream = ExtResource("12_i62fw")
|
2023-04-09 15:57:37 +00:00
|
|
|
autoplay = true
|
|
|
|
bus = &"Music"
|
2023-04-09 12:00:52 +00:00
|
|
|
|
2023-04-11 14:54:04 +00:00
|
|
|
[connection signal="pressed" from="VBoxContainer/MarginBox2/ButtonsVbox/PlayButton" to="." method="_on_play_button_pressed"]
|
|
|
|
[connection signal="pressed" from="VBoxContainer/MarginBox2/ButtonsVbox/SettingsButton" to="." method="_on_settings_button_pressed"]
|
|
|
|
[connection signal="pressed" from="VBoxContainer/MarginBox2/ButtonsVbox/AboutButton" to="." method="_on_about_button_pressed"]
|
|
|
|
[connection signal="pressed" from="VBoxContainer/MarginBox2/ButtonsVbox/QuitButton" to="." method="_on_quit_button_pressed"]
|