-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainMenu.tscn
244 lines (198 loc) · 11.1 KB
/
MainMenu.tscn
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
[gd_scene load_steps=10 format=3 uid="uid://cdblu76gxgoua"]
[ext_resource type="Script" path="res://scripts/MainMenu.gd" id="1_cqehd"]
[ext_resource type="Texture2D" uid="uid://csl4ifqvsi6cu" path="res://sprites/main-menu.png" id="1_in7xp"]
[ext_resource type="PackedScene" uid="uid://qhfp8r6qklt" path="res://assests/LevelButton.tscn" id="2_sqlrt"]
[ext_resource type="Theme" uid="uid://btkvtpbxcxmim" path="res://default.tres" id="3_btbty"]
[sub_resource type="AtlasTexture" id="AtlasTexture_vbaqe"]
atlas = ExtResource("1_in7xp")
region = Rect2(0, 0, 480, 270)
[sub_resource type="AtlasTexture" id="AtlasTexture_41vfd"]
atlas = ExtResource("1_in7xp")
region = Rect2(480, 0, 480, 270)
[sub_resource type="AtlasTexture" id="AtlasTexture_bp3yk"]
atlas = ExtResource("1_in7xp")
region = Rect2(960, 0, 480, 270)
[sub_resource type="AtlasTexture" id="AtlasTexture_y346x"]
atlas = ExtResource("1_in7xp")
region = Rect2(1440, 0, 480, 270)
[sub_resource type="SpriteFrames" id="SpriteFrames_3sjxv"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_vbaqe")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_41vfd")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_bp3yk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_y346x")
}],
"loop": true,
"name": &"default",
"speed": 1.0
}]
[node name="MainMenu" type="CanvasLayer" node_paths=PackedStringArray("level_selection", "level_container", "play_button", "max_score_label")]
script = ExtResource("1_cqehd")
level_selection = NodePath("MenusMarginContainer/MenusHBoxContainer/LevelContainer/MarginContainer/LevelSelection")
level_container = NodePath("MenusMarginContainer/MenusHBoxContainer/LevelContainer")
play_button = NodePath("MenusMarginContainer/MenusHBoxContainer/MenuContainer/MarginContainer/MenuContainer/PlayButton")
max_score_label = NodePath("OverlayElementsMarginContainer/MaxScoreLabel")
[node name="MenuBackground" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_3sjxv")
autoplay = "default"
frame_progress = 0.593091
centered = false
[node name="MenusMarginContainer" type="MarginContainer" parent="."]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
theme = ExtResource("3_btbty")
theme_override_constants/margin_left = 10
[node name="MenusHBoxContainer" type="HBoxContainer" parent="MenusMarginContainer"]
layout_mode = 2
size_flags_vertical = 3
[node name="MenuContainer" type="PanelContainer" parent="MenusMarginContainer/MenusHBoxContainer"]
layout_mode = 2
size_flags_vertical = 4
theme_type_variation = &"FlatPanelContainer"
[node name="MarginContainer" type="MarginContainer" parent="MenusMarginContainer/MenusHBoxContainer/MenuContainer"]
layout_mode = 2
theme_override_constants/margin_left = 10
theme_override_constants/margin_top = 10
theme_override_constants/margin_right = 10
theme_override_constants/margin_bottom = 10
[node name="MenuContainer" type="VBoxContainer" parent="MenusMarginContainer/MenusHBoxContainer/MenuContainer/MarginContainer"]
layout_mode = 2
theme_override_constants/separation = 8
[node name="PlayButton" type="Button" parent="MenusMarginContainer/MenusHBoxContainer/MenuContainer/MarginContainer/MenuContainer"]
layout_mode = 2
text = "PLAY"
[node name="InfiniteModeButton" type="Button" parent="MenusMarginContainer/MenusHBoxContainer/MenuContainer/MarginContainer/MenuContainer"]
layout_mode = 2
text = "INFINITE MODE"
[node name="ExitButton" type="Button" parent="MenusMarginContainer/MenusHBoxContainer/MenuContainer/MarginContainer/MenuContainer"]
layout_mode = 2
text = "EXIT"
[node name="LevelContainer" type="PanelContainer" parent="MenusMarginContainer/MenusHBoxContainer"]
visible = false
layout_mode = 2
size_flags_vertical = 4
theme_type_variation = &"FlatPanelContainer"
[node name="MarginContainer" type="MarginContainer" parent="MenusMarginContainer/MenusHBoxContainer/LevelContainer"]
layout_mode = 2
theme_override_constants/margin_left = 10
theme_override_constants/margin_top = 10
theme_override_constants/margin_right = 10
theme_override_constants/margin_bottom = 10
[node name="LevelSelection" type="GridContainer" parent="MenusMarginContainer/MenusHBoxContainer/LevelContainer/MarginContainer"]
layout_mode = 2
columns = 2
[node name="LevelButton" parent="MenusMarginContainer/MenusHBoxContainer/LevelContainer/MarginContainer/LevelSelection" instance=ExtResource("2_sqlrt")]
layout_mode = 2
[node name="LevelButton4" parent="MenusMarginContainer/MenusHBoxContainer/LevelContainer/MarginContainer/LevelSelection" instance=ExtResource("2_sqlrt")]
layout_mode = 2
[node name="LevelButton5" parent="MenusMarginContainer/MenusHBoxContainer/LevelContainer/MarginContainer/LevelSelection" instance=ExtResource("2_sqlrt")]
layout_mode = 2
[node name="LevelButton6" parent="MenusMarginContainer/MenusHBoxContainer/LevelContainer/MarginContainer/LevelSelection" instance=ExtResource("2_sqlrt")]
layout_mode = 2
[node name="LevelButton2" parent="MenusMarginContainer/MenusHBoxContainer/LevelContainer/MarginContainer/LevelSelection" instance=ExtResource("2_sqlrt")]
layout_mode = 2
[node name="LevelButton3" parent="MenusMarginContainer/MenusHBoxContainer/LevelContainer/MarginContainer/LevelSelection" instance=ExtResource("2_sqlrt")]
layout_mode = 2
[node name="OverlayElementsMarginContainer" type="MarginContainer" parent="."]
offset_right = 480.0
offset_bottom = 270.0
size_flags_horizontal = 4
size_flags_vertical = 4
mouse_filter = 2
theme_override_constants/margin_left = 5
theme_override_constants/margin_top = 5
theme_override_constants/margin_right = 5
theme_override_constants/margin_bottom = 5
[node name="MaxScoreLabel" type="Label" parent="OverlayElementsMarginContainer"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 0
text = "Max Score: 0 "
[node name="AboutButton" type="Button" parent="OverlayElementsMarginContainer"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 8
text = "about"
[node name="AboutDialog" type="AcceptDialog" parent="OverlayElementsMarginContainer"]
unique_name_in_owner = true
snap_2d_transforms_to_pixel = true
mode = 2
title = "About Game"
initial_position = 2
size = Vector2i(400, 200)
[node name="ScrollContainer" type="ScrollContainer" parent="OverlayElementsMarginContainer/AboutDialog"]
offset_left = 8.0
offset_top = 8.0
offset_right = 392.0
offset_bottom = 157.0
grow_horizontal = 2
grow_vertical = 2
vertical_scroll_mode = 2
[node name="MarginContainer" type="MarginContainer" parent="OverlayElementsMarginContainer/AboutDialog/ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_constants/margin_left = 4
theme_override_constants/margin_top = 4
theme_override_constants/margin_right = 4
theme_override_constants/margin_bottom = 4
[node name="RichTextLabel" type="RichTextLabel" parent="OverlayElementsMarginContainer/AboutDialog/ScrollContainer/MarginContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
bbcode_enabled = true
text = "[center][b]Depot Gato[/b][/center]
=========================
Simple game where you play as a Gato and save your friend gatos from being abducted.
You can find all the code on my gihub [url=https://github.com/kubre/DepotGato]https://github.com/kubre/DepotGato[/url]
=========================
[center][b]Credits[/b][/center]
Proudly made using godot game engine [url=https://godotengine.org/]https://godotengine.org/[/url]
[b]Art[/b]: My Brother in Christ I made the art using [url=https://orama-interactive.itch.io/pixelorama]pixelorama[/url] You can find all editable files in github.
+-+-+-+-+-+-+-+-+-+-+-+-+
Background Music to Main Level
Music from #Uppbeat (free for Creators!):
[url=https://uppbeat.io/t/michael-grubb/floating-cat]https://uppbeat.io/t/michael-grubb/floating-cat[/url]
License code: EZBAWEV5GRZW24QZ
-------------------------
Balloon Pop Sound Effect from [url=https://pixabay.com/sound-effects/?utm_source=link-attribution&utm_medium=referral&utm_campaign=music&utm_content=84862]Pixabay[/url]
+-+-+-+-+-+-+-+-+-+-+-+-+
Fonts:
Primary Font: [url=https://opendyslexic.org]Open Dyslexic[/url]
Bitstream License:
Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is a trademark of Bitstream, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license (“Fonts”) and associated documentation files (the “Font Software”), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions:
The above copyright and trademark notices and this permission notice shall be included in all copies of one or more of the Font Software typefaces.
The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing either the words “Bitstream” or the word “Vera”.
This License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the “Bitstream Vera” names.
The Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself.
THE FONT SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
Except as contained in this notice, the names of Gnome, the Gnome Foundation, and Bitstream Inc., shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Font Software without prior written authorization from the Gnome Foundation or Bitstream Inc., respectively. For further information, contact: fonts at gnome dot org.
-------------------------
Mono Font: [url=https://fonts.google.com]Roboto Mono[/url]
+-+-+-+-+-+-+-+-+-+-+-+-+"
fit_content = true
autowrap_mode = 2
shortcut_keys_enabled = false
[node name="RichTextLabel" type="Label" parent="."]
offset_left = 112.0
offset_top = 30.0
offset_right = 412.0
offset_bottom = 80.0
theme_type_variation = &"HeaderLarge"
text = "Depot Gato"
[connection signal="pressed" from="MenusMarginContainer/MenusHBoxContainer/MenuContainer/MarginContainer/MenuContainer/InfiniteModeButton" to="." method="_on_infinite_mode_button_pressed"]
[connection signal="pressed" from="MenusMarginContainer/MenusHBoxContainer/MenuContainer/MarginContainer/MenuContainer/ExitButton" to="." method="exit_game"]
[connection signal="pressed" from="OverlayElementsMarginContainer/AboutButton" to="." method="open_about_dialog"]