[gd_scene load_steps=19 format=4 uid="uid://bs6an72avch86"]

[ext_resource type="Texture2D" uid="uid://dxdtqv4do4x31" path="res://Sprites/background.png" id="1_6bp64"]
[ext_resource type="PackedScene" uid="uid://gkqku38yb2ng" path="res://Scenes/level.tscn" id="1_bo1nx"]
[ext_resource type="PackedScene" uid="uid://d0okbjqyaoe0w" path="res://Scenes/snake_part.tscn" id="2_8gbba"]
[ext_resource type="PackedScene" uid="uid://bldekmt1rakjl" path="res://Scenes/fruit.tscn" id="3_8gbba"]
[ext_resource type="PackedScene" uid="uid://mp03fsd536be" path="res://Scenes/score_display.tscn" id="4_jjvhh"]
[ext_resource type="PackedScene" uid="uid://bqg3ohs1gwofr" path="res://Scenes/game_over_menu.tscn" id="5_kry3j"]
[ext_resource type="Texture2D" uid="uid://dr54j1cutgpf2" path="res://Sprites/tile.png" id="6_21xkr"]
[ext_resource type="Material" uid="uid://b3rufg8frc82r" path="res://Shaders/drop_shadow.tres" id="7_wsu2k"]
[ext_resource type="Texture2D" uid="uid://c6kno4vjbvu28" path="res://Sprites/ouroboros.png" id="8_ynf5e"]
[ext_resource type="Script" uid="uid://8jbramxjbw1w" path="res://Scripts/ouroboros.gd" id="9_hptm8"]
[ext_resource type="Texture2D" uid="uid://bbutodjdye61j" path="res://Sprites/cherry.png" id="10_fdnlq"]
[ext_resource type="Texture2D" uid="uid://dr3y3mvyrecxn" path="res://Sprites/lemon.png" id="11_jkdf5"]
[ext_resource type="Texture2D" uid="uid://csu4d06po6r6x" path="res://Sprites/apple.png" id="12_wsu2k"]
[ext_resource type="Texture2D" uid="uid://ccqroki031ou" path="res://Sprites/watermelon.png" id="13_k12tt"]
[ext_resource type="FontFile" uid="uid://cupgp2iqxdun5" path="res://Fonts/Kings-Regular.ttf" id="14_jkdf5"]

[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_6bp64"]
resource_name = "Tile"
texture = ExtResource("6_21xkr")
texture_region_size = Vector2i(40, 40)
0:0/0 = 0

[sub_resource type="TileSet" id="TileSet_344ge"]
tile_size = Vector2i(40, 40)
sources/0 = SubResource("TileSetAtlasSource_6bp64")

[sub_resource type="LabelSettings" id="LabelSettings_wsu2k"]
font = ExtResource("14_jkdf5")
font_size = 18

[node name="Main" type="Node2D"]

[node name="Background" type="Sprite2D" parent="."]
texture = ExtResource("1_6bp64")
centered = false

[node name="Panel" type="Panel" parent="."]
offset_left = 20.0
offset_top = 154.0
offset_right = 141.0
offset_bottom = 623.0

[node name="Level" parent="." instance=ExtResource("1_bo1nx")]
position = Vector2(640, 320)
scale = Vector2(24, 14)

[node name="Timer" type="Timer" parent="." groups=["GameClock"]]
wait_time = 0.3
autostart = true

[node name="SnakePart" parent="." instance=ExtResource("2_8gbba")]
position = Vector2(420, 240)

[node name="Fruit" parent="." instance=ExtResource("3_8gbba")]
position = Vector2(707, 325)

[node name="Fruit2" parent="." instance=ExtResource("3_8gbba")]
position = Vector2(707, 325)

[node name="Fruit3" parent="." instance=ExtResource("3_8gbba")]
position = Vector2(707, 325)

[node name="Fruit4" parent="." instance=ExtResource("3_8gbba")]
position = Vector2(707, 325)

[node name="Fruit5" parent="." instance=ExtResource("3_8gbba")]
position = Vector2(707, 325)

[node name="RestartTimer" type="Timer" parent="." groups=["GameClockPause"]]

[node name="ScoreDisplay" parent="." instance=ExtResource("4_jjvhh")]
offset_left = 1.0
offset_top = 162.0
offset_right = 153.0
offset_bottom = 533.0

[node name="GameOverMenu" parent="." instance=ExtResource("5_kry3j")]
z_index = 1
offset_left = 340.0
offset_top = 173.0
offset_right = 812.0
offset_bottom = 475.0

[node name="Ouroboros2" type="Sprite2D" parent="GameOverMenu"]
material = ExtResource("7_wsu2k")
position = Vector2(237, 118)
scale = Vector2(0.5, 0.5)
texture = ExtResource("8_ynf5e")
script = ExtResource("9_hptm8")

[node name="TileMapLayer" type="TileMapLayer" parent="."]
position = Vector2(20, 20)
tile_map_data = PackedByteArray("[encoded data, 6004 characters]")
tile_set = SubResource("TileSet_344ge")

[node name="Ouroboros" type="Sprite2D" parent="."]
material = ExtResource("7_wsu2k")
position = Vector2(84, 90)
scale = Vector2(0.5, 0.5)
texture = ExtResource("8_ynf5e")
script = ExtResource("9_hptm8")

[node name="FruitExamples" type="Node2D" parent="."]
position = Vector2(-1, 56)

[node name="Cherry" type="Sprite2D" parent="FruitExamples"]
material = ExtResource("7_wsu2k")
position = Vector2(39, 503)
texture = ExtResource("10_fdnlq")

[node name="Lemon" type="Sprite2D" parent="FruitExamples"]
material = ExtResource("7_wsu2k")
position = Vector2(38, 542)
texture = ExtResource("11_jkdf5")

[node name="Apple" type="Sprite2D" parent="FruitExamples"]
material = ExtResource("7_wsu2k")
position = Vector2(93, 509)
texture = ExtResource("12_wsu2k")

[node name="Watermelon" type="Sprite2D" parent="FruitExamples"]
material = ExtResource("7_wsu2k")
position = Vector2(92, 541)
texture = ExtResource("13_k12tt")

[node name="Label" type="Label" parent="FruitExamples"]
offset_left = 56.0
offset_top = 496.0
offset_right = 96.0
offset_bottom = 519.0
text = "=1"
label_settings = SubResource("LabelSettings_wsu2k")

[node name="Label2" type="Label" parent="FruitExamples"]
offset_left = 55.0
offset_top = 530.0
offset_right = 95.0
offset_bottom = 553.0
text = "=3"
label_settings = SubResource("LabelSettings_wsu2k")

[node name="Label3" type="Label" parent="FruitExamples"]
offset_left = 112.0
offset_top = 496.0
offset_right = 152.0
offset_bottom = 519.0
text = "=5"
label_settings = SubResource("LabelSettings_wsu2k")

[node name="Label4" type="Label" parent="FruitExamples"]
offset_left = 113.0
offset_top = 527.0
offset_right = 153.0
offset_bottom = 550.0
text = "=10"
label_settings = SubResource("LabelSettings_wsu2k")

[connection signal="timeout" from="RestartTimer" to="Timer" method="start" binds= [0.3]]
