blob: 7ed6a2e2e1355008e7459b4ac02b036ad0a96d2f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
[gd_scene load_steps=5 format=3 uid="uid://b2qd30xikdn5s"]
[ext_resource type="Texture2D" uid="uid://c5ffyq2jql05n" path="res://assets/images/cactus.svg" id="1_jwgwe"]
[ext_resource type="Texture2D" uid="uid://c2xlvjlanf1j0" path="res://assets/images/frivorun-logo.png" id="2"]
[ext_resource type="LabelSettings" uid="uid://ca7nqey0cn3d6" path="res://menu/labelsettings.tres" id="3_a1avm"]
[sub_resource type="GDScript" id="GDScript_kjhan"]
script/source = "extends Control
func _on_Play_button_up():
if get_tree().change_scene_to_file(\"res://game/Game.tscn\") != OK:
print(\"There was an error trying to load the scene...\")
func _on_Credits_button_up():
$CreditsDialog.popup_centered()
func _on_Quit_button_up():
get_tree().quit()
func _on_button_button_up():
$CreditsDialog.visible = false
"
[node name="Menu" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = SubResource("GDScript_kjhan")
[node name="MarginContainer" type="MarginContainer" parent="."]
layout_mode = 0
anchor_right = 1.0
anchor_bottom = 1.0
[node name="CenterContainer" type="CenterContainer" parent="MarginContainer"]
layout_mode = 2
[node name="ParallaxBackground" type="ParallaxBackground" parent="MarginContainer/CenterContainer"]
[node name="Cactus" type="Sprite2D" parent="MarginContainer/CenterContainer/ParallaxBackground"]
position = Vector2(640, 360)
texture = ExtResource("1_jwgwe")
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/CenterContainer"]
layout_mode = 2
[node name="Logo" type="TextureRect" parent="MarginContainer/CenterContainer/VBoxContainer"]
layout_mode = 2
texture = ExtResource("2")
[node name="Play" type="Button" parent="MarginContainer/CenterContainer/VBoxContainer"]
layout_mode = 2
text = "Play"
[node name="Credits" type="Button" parent="MarginContainer/CenterContainer/VBoxContainer"]
layout_mode = 2
text = "Credits"
[node name="Quit" type="Button" parent="MarginContainer/CenterContainer/VBoxContainer"]
layout_mode = 2
text = "Quit"
[node name="HSeparator" type="HSeparator" parent="MarginContainer/CenterContainer/VBoxContainer"]
modulate = Color(1, 1, 1, 0)
layout_mode = 2
[node name="About" type="Label" parent="MarginContainer/CenterContainer/VBoxContainer"]
layout_mode = 2
text = "Originally made for the bits & Bytes Unofficial Game Jam August 2022."
label_settings = ExtResource("3_a1avm")
horizontal_alignment = 1
[node name="Copyright" type="Label" parent="MarginContainer/CenterContainer/VBoxContainer"]
layout_mode = 2
text = "© Copyright 2023 Andrew Lee."
label_settings = ExtResource("3_a1avm")
horizontal_alignment = 1
[node name="CreditsDialog" type="Window" parent="."]
size = Vector2i(500, 320)
visible = false
[node name="MarginContainer" type="MarginContainer" parent="CreditsDialog"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 20.0
offset_top = 20.0
offset_right = -20.0
offset_bottom = -20.0
[node name="VBoxContainer" type="VBoxContainer" parent="CreditsDialog/MarginContainer"]
layout_mode = 2
[node name="AboutLabel" type="Label" parent="CreditsDialog/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "About FrivoRun"
horizontal_alignment = 1
[node name="PoweredLabel" type="Label" parent="CreditsDialog/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "Created by Andrew Lee
Made for the bits & Bytes Game Jam of August 2022
Powered by the Godot Engine"
[node name="MusicLabel" type="Label" parent="CreditsDialog/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "Music used for this game:
Digital Lemonade by Kevin Macleod
Happy Bee by Kevin Macleod"
[node name="ImageLabel" type="Label" parent="CreditsDialog/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "Images used:
Cactus by Victor Tran"
[node name="Button" type="Button" parent="CreditsDialog/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "Close"
[connection signal="button_up" from="MarginContainer/CenterContainer/VBoxContainer/Play" to="." method="_on_Play_button_up"]
[connection signal="button_up" from="MarginContainer/CenterContainer/VBoxContainer/Credits" to="." method="_on_Credits_button_up"]
[connection signal="button_up" from="MarginContainer/CenterContainer/VBoxContainer/Quit" to="." method="_on_Quit_button_up"]
[connection signal="button_up" from="CreditsDialog/MarginContainer/VBoxContainer/Button" to="." method="_on_button_button_up"]
|