124 lines
3.6 KiB
Plaintext
124 lines
3.6 KiB
Plaintext
[gd_scene load_steps=13 format=3 uid="uid://m8lf3eh3al5j"]
|
|
|
|
[ext_resource type="Script" uid="uid://b2x0kw8f70s8q" path="res://scenes/ui/MainMenu.gd" id="1_b00nv"]
|
|
[ext_resource type="PackedScene" uid="uid://df2b4wn8j6cxl" path="res://scenes/ui/DebugToggle.tscn" id="2_debug"]
|
|
[ext_resource type="Texture2D" uid="uid://btfjyc4jfhiii" path="res://assets/sprites/characters/skeleton/Skeleton Hit.png" id="2_iwbf0"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_2ysvc"]
|
|
atlas = ExtResource("2_iwbf0")
|
|
region = Rect2(0, 0, 30, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_xpiny"]
|
|
atlas = ExtResource("2_iwbf0")
|
|
region = Rect2(30, 0, 30, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_bhu4a"]
|
|
atlas = ExtResource("2_iwbf0")
|
|
region = Rect2(60, 0, 30, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_e2per"]
|
|
atlas = ExtResource("2_iwbf0")
|
|
region = Rect2(90, 0, 30, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_7mi0g"]
|
|
atlas = ExtResource("2_iwbf0")
|
|
region = Rect2(120, 0, 30, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_nqjyj"]
|
|
atlas = ExtResource("2_iwbf0")
|
|
region = Rect2(150, 0, 30, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_7vr37"]
|
|
atlas = ExtResource("2_iwbf0")
|
|
region = Rect2(180, 0, 30, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_kncl5"]
|
|
atlas = ExtResource("2_iwbf0")
|
|
region = Rect2(210, 0, 30, 32)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_clp4r"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_2ysvc")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_xpiny")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_bhu4a")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_e2per")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_7mi0g")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_nqjyj")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_7vr37")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_kncl5")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[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_b00nv")
|
|
|
|
[node name="MenuContainer" type="VBoxContainer" parent="."]
|
|
custom_minimum_size = Vector2(200, 100)
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -20.0
|
|
offset_top = -20.0
|
|
offset_right = 20.0
|
|
offset_bottom = 20.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
metadata/_edit_use_anchors_ = true
|
|
|
|
[node name="SpriteContainer" type="Control" parent="MenuContainer"]
|
|
custom_minimum_size = Vector2(30, 32)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="MenuContainer/SpriteContainer"]
|
|
sprite_frames = SubResource("SpriteFrames_clp4r")
|
|
autoplay = "default"
|
|
frame_progress = 0.574348
|
|
|
|
[node name="NewGameButton" type="Button" parent="MenuContainer"]
|
|
layout_mode = 2
|
|
text = "New Game"
|
|
|
|
[node name="SettingsButton" type="Button" parent="MenuContainer"]
|
|
layout_mode = 2
|
|
text = "Settings"
|
|
|
|
[node name="ExitButton" type="Button" parent="MenuContainer"]
|
|
layout_mode = 2
|
|
text = "Exit"
|
|
|
|
[node name="DebugToggle" parent="." instance=ExtResource("2_debug")]
|
|
layout_mode = 1
|
|
|
|
[connection signal="pressed" from="MenuContainer/NewGameButton" to="." method="_on_new_game_button_pressed"]
|
|
[connection signal="pressed" from="MenuContainer/SettingsButton" to="." method="_on_settings_button_pressed"]
|
|
[connection signal="pressed" from="MenuContainer/ExitButton" to="." method="_on_exit_button_pressed"]
|