282 lines
8.1 KiB
Plaintext
282 lines
8.1 KiB
Plaintext
[gd_scene load_steps=17 format=3 uid="uid://bu5cwjawsnb1q"]
|
|
|
|
[ext_resource type="Script" uid="uid://bomw4j2mmerry" path="res://Scripts/main_menu.gd" id="1_28flt"]
|
|
[ext_resource type="Texture2D" uid="uid://dxdtqv4do4x31" path="res://Sprites/background.png" id="2_48xlc"]
|
|
[ext_resource type="Texture2D" uid="uid://c6kno4vjbvu28" path="res://Sprites/ouroboros.png" id="3_ce3w2"]
|
|
[ext_resource type="Script" uid="uid://dp3dc6g76g8wq" path="res://Scripts/menu_ouroboros.gd" id="4_n45e2"]
|
|
[ext_resource type="Texture2D" uid="uid://bbutodjdye61j" path="res://Sprites/cherry.png" id="5_trj04"]
|
|
[ext_resource type="FontFile" uid="uid://cupgp2iqxdun5" path="res://Fonts/Kings-Regular.ttf" id="6_16hvj"]
|
|
[ext_resource type="Texture2D" uid="uid://dr3y3mvyrecxn" path="res://Sprites/lemon.png" id="7_vr1f0"]
|
|
[ext_resource type="Texture2D" uid="uid://csu4d06po6r6x" path="res://Sprites/apple.png" id="8_t1dhk"]
|
|
[ext_resource type="Texture2D" uid="uid://ccqroki031ou" path="res://Sprites/watermelon.png" id="9_5egv6"]
|
|
|
|
[sub_resource type="LabelSettings" id="LabelSettings_ce3w2"]
|
|
font_size = 160
|
|
font_color = Color(1, 0.271, 0, 1)
|
|
|
|
[sub_resource type="LabelSettings" id="LabelSettings_n45e2"]
|
|
font_size = 160
|
|
font_color = Color(1, 1, 0, 1)
|
|
|
|
[sub_resource type="LabelSettings" id="LabelSettings_opfnp"]
|
|
font_size = 160
|
|
font_color = Color(0, 0, 1, 1)
|
|
|
|
[sub_resource type="LabelSettings" id="LabelSettings_cp0ys"]
|
|
font_size = 160
|
|
font_color = Color(0.545098, 0, 0, 1)
|
|
|
|
[sub_resource type="LabelSettings" id="LabelSettings_yhxw7"]
|
|
font_size = 160
|
|
font_color = Color(1, 1, 0, 1)
|
|
|
|
[sub_resource type="LabelSettings" id="LabelSettings_vtepg"]
|
|
line_spacing = -1.0
|
|
paragraph_spacing = 1.0
|
|
|
|
[sub_resource type="LabelSettings" id="LabelSettings_8dnnj"]
|
|
font = ExtResource("6_16hvj")
|
|
font_size = 18
|
|
font_color = Color(0, 0, 0, 1)
|
|
|
|
[node name="MainMenu" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = ExtResource("1_28flt")
|
|
|
|
[node name="Background" type="Sprite2D" parent="."]
|
|
texture = ExtResource("2_48xlc")
|
|
centered = false
|
|
|
|
[node name="Container" type="Control" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 0
|
|
offset_right = 40.0
|
|
offset_bottom = 40.0
|
|
|
|
[node name="Buttons" type="VBoxContainer" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = -1
|
|
anchor_left = 0.3
|
|
anchor_top = 0.432
|
|
anchor_right = 0.7
|
|
anchor_bottom = 0.909
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="Start" type="Button" parent="Buttons"]
|
|
layout_mode = 2
|
|
text = "Start Game"
|
|
|
|
[node name="Help" type="Button" parent="Buttons"]
|
|
layout_mode = 2
|
|
text = "How to Play"
|
|
|
|
[node name="Options" type="Button" parent="Buttons"]
|
|
visible = false
|
|
layout_mode = 2
|
|
text = "Options"
|
|
|
|
[node name="Quit" type="Button" parent="Buttons"]
|
|
layout_mode = 2
|
|
text = "Quit"
|
|
|
|
[node name="Title" type="Control" parent="."]
|
|
anchors_preset = 0
|
|
offset_left = -34.0
|
|
offset_top = -2.0
|
|
offset_right = 6.0
|
|
offset_bottom = 38.0
|
|
|
|
[node name="Ouroboros" type="Sprite2D" parent="Title"]
|
|
modulate = Color(0.545, 0, 0, 1)
|
|
position = Vector2(241, 130)
|
|
texture = ExtResource("3_ce3w2")
|
|
script = ExtResource("4_n45e2")
|
|
|
|
[node name="Ouroboros2" type="Sprite2D" parent="Title"]
|
|
modulate = Color(0, 0.502, 0, 1)
|
|
position = Vector2(574, 176)
|
|
scale = Vector2(0.5, 0.5)
|
|
texture = ExtResource("3_ce3w2")
|
|
script = ExtResource("4_n45e2")
|
|
|
|
[node name="Ouroboros3" type="Sprite2D" parent="Title"]
|
|
modulate = Color(0.4, 0.2, 0.6, 1)
|
|
position = Vector2(776, 178)
|
|
scale = Vector2(0.5, 0.5)
|
|
texture = ExtResource("3_ce3w2")
|
|
script = ExtResource("4_n45e2")
|
|
|
|
[node name="Ouroboros4" type="Sprite2D" parent="Title"]
|
|
modulate = Color(1, 0.270588, 0, 1)
|
|
position = Vector2(947, 181)
|
|
scale = Vector2(0.5, 0.5)
|
|
texture = ExtResource("3_ce3w2")
|
|
script = ExtResource("4_n45e2")
|
|
|
|
[node name="Label" type="Label" parent="Title"]
|
|
layout_mode = 0
|
|
offset_left = 357.0
|
|
offset_top = 65.0
|
|
offset_right = 528.0
|
|
offset_bottom = 289.0
|
|
text = "u"
|
|
label_settings = SubResource("LabelSettings_ce3w2")
|
|
|
|
[node name="Label5" type="Label" parent="Title"]
|
|
layout_mode = 0
|
|
offset_left = 459.0
|
|
offset_top = 65.0
|
|
offset_right = 630.0
|
|
offset_bottom = 289.0
|
|
text = "r"
|
|
label_settings = SubResource("LabelSettings_n45e2")
|
|
|
|
[node name="Label2" type="Label" parent="Title"]
|
|
layout_mode = 0
|
|
offset_left = 631.0
|
|
offset_top = 66.0
|
|
offset_right = 731.0
|
|
offset_bottom = 290.0
|
|
text = "b"
|
|
label_settings = SubResource("LabelSettings_opfnp")
|
|
|
|
[node name="Label3" type="Label" parent="Title"]
|
|
layout_mode = 0
|
|
offset_left = 833.0
|
|
offset_top = 68.0
|
|
offset_right = 933.0
|
|
offset_bottom = 292.0
|
|
text = "r"
|
|
label_settings = SubResource("LabelSettings_cp0ys")
|
|
|
|
[node name="Label4" type="Label" parent="Title"]
|
|
layout_mode = 0
|
|
offset_left = 1004.0
|
|
offset_top = 67.0
|
|
offset_right = 1104.0
|
|
offset_bottom = 291.0
|
|
text = "s"
|
|
label_settings = SubResource("LabelSettings_yhxw7")
|
|
|
|
[node name="HelpPanel" type="Panel" parent="."]
|
|
visible = false
|
|
layout_mode = 1
|
|
anchors_preset = -1
|
|
anchor_left = 0.25
|
|
anchor_top = 0.375
|
|
anchor_right = 0.75
|
|
anchor_bottom = 0.8
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="Label" type="Label" parent="HelpPanel"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
text = "A game of Ouroboros is about creating loops of snakes, called an Ouroboros. The aim is to create as many Ouroboroses as you can.
|
|
|
|
To control your snake, you can use, WASD, arrow keys or Vi direction keys.
|
|
|
|
Eating a fruit does not give you any points, but will increase the length of your snake according the type of fruit as shown below.
|
|
|
|
|
|
Each time you achieve an Ouroboros, you get one score and start as a new snake inside the old Ouroboros, making the arena smaller."
|
|
label_settings = SubResource("LabelSettings_vtepg")
|
|
autowrap_mode = 3
|
|
|
|
[node name="FruitExamples" type="HBoxContainer" parent="HelpPanel"]
|
|
layout_mode = 1
|
|
anchors_preset = -1
|
|
anchor_top = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_top = -107.0
|
|
offset_bottom = -60.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
|
|
[node name="Separator4" type="Control" parent="HelpPanel/FruitExamples"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="HelpPanel/FruitExamples"]
|
|
layout_mode = 2
|
|
texture = ExtResource("5_trj04")
|
|
stretch_mode = 2
|
|
|
|
[node name="Label" type="Label" parent="HelpPanel/FruitExamples"]
|
|
layout_mode = 2
|
|
text = "=1"
|
|
label_settings = SubResource("LabelSettings_8dnnj")
|
|
|
|
[node name="Separator" type="Control" parent="HelpPanel/FruitExamples"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="TextureRect2" type="TextureRect" parent="HelpPanel/FruitExamples"]
|
|
layout_mode = 2
|
|
texture = ExtResource("7_vr1f0")
|
|
stretch_mode = 2
|
|
|
|
[node name="Label2" type="Label" parent="HelpPanel/FruitExamples"]
|
|
layout_mode = 2
|
|
text = "=3"
|
|
label_settings = SubResource("LabelSettings_8dnnj")
|
|
|
|
[node name="Separator2" type="Control" parent="HelpPanel/FruitExamples"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="TextureRect3" type="TextureRect" parent="HelpPanel/FruitExamples"]
|
|
layout_mode = 2
|
|
texture = ExtResource("8_t1dhk")
|
|
stretch_mode = 2
|
|
|
|
[node name="Label3" type="Label" parent="HelpPanel/FruitExamples"]
|
|
layout_mode = 2
|
|
text = "=5"
|
|
label_settings = SubResource("LabelSettings_8dnnj")
|
|
|
|
[node name="Separator3" type="Control" parent="HelpPanel/FruitExamples"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="TextureRect4" type="TextureRect" parent="HelpPanel/FruitExamples"]
|
|
layout_mode = 2
|
|
texture = ExtResource("9_5egv6")
|
|
stretch_mode = 2
|
|
|
|
[node name="Label4" type="Label" parent="HelpPanel/FruitExamples"]
|
|
layout_mode = 2
|
|
text = "=10"
|
|
label_settings = SubResource("LabelSettings_8dnnj")
|
|
|
|
[node name="Separator5" type="Control" parent="HelpPanel/FruitExamples"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="Button" type="Button" parent="HelpPanel"]
|
|
layout_mode = 1
|
|
anchors_preset = -1
|
|
anchor_top = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_bottom = 27.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
text = "OK"
|
|
|
|
[connection signal="pressed" from="Buttons/Start" to="." method="start_game"]
|
|
[connection signal="pressed" from="Buttons/Help" to="." method="show_help"]
|
|
[connection signal="pressed" from="Buttons/Quit" to="." method="quit"]
|
|
[connection signal="pressed" from="HelpPanel/Button" to="." method="hide_help"]
|