[gd_scene load_steps=6 format=3 uid="uid://drs4bhpd3vrh2"] [ext_resource type="Script" path="res://Scripts/GameManager.gd" id="1_lps27"] [ext_resource type="Texture2D" uid="uid://vv33w22kwgpc" path="res://Assets/tile.png" id="2_wiemx"] [ext_resource type="Script" path="res://Scripts/TileColors.gd" id="3_gnesl"] [ext_resource type="Script" path="res://Scripts/UI/SliderLabel.gd" id="4_7lfe4"] [sub_resource type="Resource" id="Resource_22g0s"] script = ExtResource("3_gnesl") empty = Color(1, 1, 1, 1) snake_head = Color(0, 1, 0, 1) snake_body = Color(0.133333, 0.545098, 0.133333, 1) apple = Color(1, 0, 0, 1) [node name="Node2D" type="Node2D"] [node name="GameManager" type="Node" parent="."] [node name="Map" type="Node2D" parent="."] script = ExtResource("1_lps27") map_size = 25 texture = ExtResource("2_wiemx") gaps = 5 tile_color = SubResource("Resource_22g0s") [node name="Camera2D" type="Camera2D" parent="."] [node name="HBoxContainer" type="HBoxContainer" parent="."] anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -117.5 offset_top = -104.5 offset_right = 117.5 offset_bottom = 104.5 grow_horizontal = 2 grow_vertical = 2 size_flags_horizontal = 3 size_flags_vertical = 3 [node name="Buttons" type="VBoxContainer" parent="HBoxContainer"] layout_mode = 2 size_flags_horizontal = 3 theme_override_constants/separation = 8 [node name="PanelContainer" type="PanelContainer" parent="HBoxContainer/Buttons"] layout_mode = 2 [node name="Resume" type="Button" parent="HBoxContainer/Buttons"] layout_mode = 2 text = "Resume" [node name="Restart" type="Button" parent="HBoxContainer/Buttons"] layout_mode = 2 text = "Restart" [node name="Quit" type="Button" parent="HBoxContainer/Buttons"] layout_mode = 2 text = "Quit" [node name="Sliders" type="VBoxContainer" parent="HBoxContainer"] layout_mode = 2 size_flags_horizontal = 3 theme_override_constants/separation = -1 [node name="Grid Size" type="VBoxContainer" parent="HBoxContainer/Sliders"] layout_mode = 2 size_flags_vertical = 4 theme_override_constants/separation = -12 [node name="Label" type="Label" parent="HBoxContainer/Sliders/Grid Size"] layout_mode = 2 text = "Grid Size" horizontal_alignment = 1 [node name="HBoxContainer" type="HBoxContainer" parent="HBoxContainer/Sliders/Grid Size"] layout_mode = 2 [node name="HSlider" type="HSlider" parent="HBoxContainer/Sliders/Grid Size/HBoxContainer"] layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 4 min_value = 5.0 max_value = 32.0 value = 5.0 [node name="Count" type="Label" parent="HBoxContainer/Sliders/Grid Size/HBoxContainer" node_paths=PackedStringArray("slider")] layout_mode = 2 text = "12" vertical_alignment = 1 script = ExtResource("4_7lfe4") slider = NodePath("../HSlider") [node name="Speed" type="VBoxContainer" parent="HBoxContainer/Sliders"] layout_mode = 2 size_flags_vertical = 4 theme_override_constants/separation = -12 [node name="Label" type="Label" parent="HBoxContainer/Sliders/Speed"] layout_mode = 2 text = "Speed " horizontal_alignment = 1 [node name="HBoxContainer" type="HBoxContainer" parent="HBoxContainer/Sliders/Speed"] layout_mode = 2 [node name="HSlider" type="HSlider" parent="HBoxContainer/Sliders/Speed/HBoxContainer"] layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 4 min_value = 1.0 max_value = 10.0 value = 1.0 [node name="Count" type="Label" parent="HBoxContainer/Sliders/Speed/HBoxContainer" node_paths=PackedStringArray("slider")] layout_mode = 2 text = "12" vertical_alignment = 1 script = ExtResource("4_7lfe4") slider = NodePath("../HSlider")