54 lines
1.9 KiB
Plaintext
54 lines
1.9 KiB
Plaintext
[gd_scene load_steps=6 format=3 uid="uid://bs6an72avch86"]
|
|
|
|
[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"]
|
|
|
|
[node name="Main" type="Node2D"]
|
|
|
|
[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 = 4.0
|
|
offset_top = 42.0
|
|
offset_right = 156.0
|
|
offset_bottom = 197.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
|
|
|
|
[connection signal="area_exited" from="Level" to="SnakePart" method="_on_level_area_exited"]
|
|
[connection signal="timeout" from="RestartTimer" to="Timer" method="start" binds= [0.3]]
|