main_menu.tscn 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. [gd_scene load_steps=18 format=3 uid="uid://p0p5p0t1ksg7"]
  2. [ext_resource type="Script" path="res://scenes/main_menu/main_menu.gd" id="1_ixylo"]
  3. [ext_resource type="Texture2D" uid="uid://cgfevouuaj838" path="res://assets/sprites/background/background.png" id="2_4lmfd"]
  4. [ext_resource type="PackedScene" uid="uid://dkcd5om7fh0w4" path="res://scenes/tilemap/tilemap.tscn" id="2_kmjht"]
  5. [ext_resource type="PackedScene" path="res://scenes/ui/wood_plate/wood_plate.tscn" id="3_wc0ux"]
  6. [ext_resource type="Texture2D" uid="uid://bs3a8ud6co5a3" path="res://assets/sprites/main_menu/buttons/play/play.png" id="6_6ma3f"]
  7. [ext_resource type="Texture2D" uid="uid://boxy83mdd5bu" path="res://assets/sprites/slime/slime.png" id="6_r38o8"]
  8. [ext_resource type="PackedScene" uid="uid://rgll4to22jal" path="res://scenes/ui/wood_button/wood_button.tscn" id="6_ur85q"]
  9. [ext_resource type="Texture2D" uid="uid://djb8uuur1wkar" path="res://assets/sprites/main_menu/grredy_slime.png" id="7_23beg"]
  10. [ext_resource type="Texture2D" uid="uid://dnfp25jk5bxdi" path="res://assets/sprites/main_menu/buttons/settings/settings.png" id="7_n5bdk"]
  11. [ext_resource type="Texture2D" uid="uid://c1xijtm5vj7on" path="res://assets/sprites/main_menu/buttons/credits/credits.png" id="8_0smar"]
  12. [ext_resource type="Texture2D" uid="uid://ci7io317nw2sx" path="res://assets/sprites/chest/chest.png" id="9_ut38k"]
  13. [sub_resource type="AtlasTexture" id="AtlasTexture_2png2"]
  14. atlas = ExtResource("6_6ma3f")
  15. region = Rect2(0, 0, 128, 32)
  16. [sub_resource type="AtlasTexture" id="AtlasTexture_yhvtu"]
  17. atlas = ExtResource("6_6ma3f")
  18. region = Rect2(0, 32, 128, 32)
  19. [sub_resource type="AtlasTexture" id="AtlasTexture_rl7fe"]
  20. atlas = ExtResource("7_n5bdk")
  21. region = Rect2(0, 0, 128, 32)
  22. [sub_resource type="AtlasTexture" id="AtlasTexture_a6v2f"]
  23. atlas = ExtResource("7_n5bdk")
  24. region = Rect2(0, 32, 128, 32)
  25. [sub_resource type="AtlasTexture" id="AtlasTexture_l7mry"]
  26. atlas = ExtResource("8_0smar")
  27. region = Rect2(0, 0, 128, 32)
  28. [sub_resource type="AtlasTexture" id="AtlasTexture_ljvfg"]
  29. atlas = ExtResource("8_0smar")
  30. region = Rect2(0, 32, 128, 32)
  31. [node name="MainMenu" type="Node2D"]
  32. script = ExtResource("1_ixylo")
  33. [node name="Sky" type="Sprite2D" parent="."]
  34. texture_repeat = 2
  35. texture = ExtResource("2_4lmfd")
  36. centered = false
  37. metadata/_edit_lock_ = true
  38. [node name="Plates" type="Control" parent="."]
  39. layout_mode = 3
  40. anchors_preset = 0
  41. offset_right = 384.0
  42. offset_bottom = 192.0
  43. [node name="VBoxContainer" type="VBoxContainer" parent="Plates"]
  44. layout_mode = 0
  45. offset_right = 384.0
  46. offset_bottom = 192.0
  47. theme_override_constants/separation = 8
  48. [node name="WoodPlate" parent="Plates/VBoxContainer" instance=ExtResource("3_wc0ux")]
  49. custom_minimum_size = Vector2(160, 64)
  50. layout_mode = 2
  51. size_flags_horizontal = 4
  52. size_flags_vertical = 4
  53. metadata/_edit_group_ = true
  54. [node name="GreedySlime" type="TextureRect" parent="Plates/VBoxContainer/WoodPlate"]
  55. layout_mode = 1
  56. anchors_preset = 13
  57. anchor_left = 0.5
  58. anchor_right = 0.5
  59. anchor_bottom = 1.0
  60. offset_left = -80.0
  61. offset_right = 80.0
  62. grow_horizontal = 2
  63. grow_vertical = 2
  64. pivot_offset = Vector2(80, 32)
  65. size_flags_horizontal = 4
  66. size_flags_vertical = 4
  67. texture = ExtResource("7_23beg")
  68. stretch_mode = 3
  69. [node name="Buttons" type="VBoxContainer" parent="Plates/VBoxContainer"]
  70. layout_mode = 2
  71. [node name="Play" parent="Plates/VBoxContainer/Buttons" instance=ExtResource("6_ur85q")]
  72. custom_minimum_size = Vector2(128, 32)
  73. layout_mode = 2
  74. texture_normal = SubResource("AtlasTexture_2png2")
  75. texture_pressed = SubResource("AtlasTexture_yhvtu")
  76. texture_hover = SubResource("AtlasTexture_yhvtu")
  77. [node name="Settings" parent="Plates/VBoxContainer/Buttons" instance=ExtResource("6_ur85q")]
  78. custom_minimum_size = Vector2(128, 32)
  79. layout_mode = 2
  80. texture_normal = SubResource("AtlasTexture_rl7fe")
  81. texture_pressed = SubResource("AtlasTexture_a6v2f")
  82. texture_hover = SubResource("AtlasTexture_a6v2f")
  83. [node name="Credits" parent="Plates/VBoxContainer/Buttons" instance=ExtResource("6_ur85q")]
  84. custom_minimum_size = Vector2(128, 32)
  85. layout_mode = 2
  86. texture_normal = SubResource("AtlasTexture_l7mry")
  87. texture_pressed = SubResource("AtlasTexture_ljvfg")
  88. texture_hover = SubResource("AtlasTexture_ljvfg")
  89. [node name="TileMap" parent="." instance=ExtResource("2_kmjht")]
  90. layer_0/tile_data = PackedInt32Array(327680, 65536, 1, 327681, 65536, 1, 327690, 65536, 1, 327691, 65536, 1, 327682, 131072, 1, 262146, 131072, 1, 196610, 131072, 0, 196609, 65536, 0, 196608, 65536, 0, 262144, 65536, 1, 262145, 65536, 1, 262154, 65536, 1, 262155, 65536, 1, 196617, 0, 0, 262153, 0, 1, 327689, 0, 1, 196618, 65536, 0, 196619, 65536, 0)
  91. [node name="Slime" type="Sprite2D" parent="."]
  92. position = Vector2(35, 91)
  93. texture = ExtResource("6_r38o8")
  94. hframes = 2
  95. vframes = 6
  96. [node name="Camera2D" type="Camera2D" parent="."]
  97. position = Vector2(192, 96)
  98. [node name="Chest" type="Sprite2D" parent="."]
  99. position = Vector2(351, 84)
  100. texture = ExtResource("9_ut38k")
  101. hframes = 3
  102. [connection signal="pressed" from="Plates/VBoxContainer/Buttons/Play" to="." method="_on_play_button_pressed"]
  103. [connection signal="pressed" from="Plates/VBoxContainer/Buttons/Credits" to="." method="_on_credits_button_pressed"]