2023-04-04 17:50:55 +00:00
|
|
|
[gd_scene load_steps=7 format=3 uid="uid://drs4bhpd3vrh2"]
|
2023-02-06 12:47:18 +00:00
|
|
|
|
2023-02-15 17:11:37 +00:00
|
|
|
[ext_resource type="Script" path="res://Scripts/GameManager.gd" id="1_lps27"]
|
2023-02-06 12:47:18 +00:00
|
|
|
[ext_resource type="Texture2D" uid="uid://vv33w22kwgpc" path="res://Assets/tile.png" id="2_wiemx"]
|
2023-02-15 17:11:37 +00:00
|
|
|
[ext_resource type="Script" path="res://Scripts/TileColors.gd" id="3_gnesl"]
|
2023-04-04 17:50:55 +00:00
|
|
|
[ext_resource type="AudioStream" uid="uid://d1ofn1jqfbxpk" path="res://Assets/sounds/apple.wav" id="4_a0lry"]
|
|
|
|
[ext_resource type="AudioStream" uid="uid://ccoi138at5ti1" path="res://Assets/sounds/bonk.wav" id="5_btrdr"]
|
2023-02-15 17:11:37 +00:00
|
|
|
|
|
|
|
[sub_resource type="Resource" id="Resource_22g0s"]
|
|
|
|
script = ExtResource("3_gnesl")
|
2023-04-02 20:24:12 +00:00
|
|
|
empty = Color(0.294118, 0.337255, 0.301961, 1)
|
2023-04-04 17:21:46 +00:00
|
|
|
snake_head = Color(0.878431, 0.913725, 0.768627, 1)
|
2023-04-02 20:24:12 +00:00
|
|
|
snake_body = Color(0.603922, 0.647059, 0.486275, 1)
|
2023-04-04 18:01:12 +00:00
|
|
|
apple = Color(0.909804, 0.462745, 0.462745, 1)
|
2023-02-06 12:47:18 +00:00
|
|
|
|
2023-03-31 17:01:28 +00:00
|
|
|
[node name="Node2D" type="Control"]
|
|
|
|
layout_mode = 3
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
2023-02-06 12:47:18 +00:00
|
|
|
|
|
|
|
[node name="GameManager" type="Node" parent="."]
|
|
|
|
|
2023-03-31 17:01:28 +00:00
|
|
|
[node name="ColorRect" type="ColorRect" parent="."]
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
2023-04-04 17:21:46 +00:00
|
|
|
color = Color(0.145098, 0.145098, 0.145098, 1)
|
2023-03-31 17:01:28 +00:00
|
|
|
|
|
|
|
[node name="AspectRatioContainer" type="AspectRatioContainer" parent="."]
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
|
|
|
|
[node name="Map" type="GridContainer" parent="AspectRatioContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_constants/h_separation = 5
|
|
|
|
theme_override_constants/v_separation = 5
|
|
|
|
columns = 2
|
2023-02-15 17:11:37 +00:00
|
|
|
script = ExtResource("1_lps27")
|
2023-04-02 20:24:12 +00:00
|
|
|
map_size = 10
|
2023-02-06 12:47:18 +00:00
|
|
|
texture = ExtResource("2_wiemx")
|
2023-02-15 17:11:37 +00:00
|
|
|
tile_color = SubResource("Resource_22g0s")
|
2023-04-04 17:50:55 +00:00
|
|
|
|
|
|
|
[node name="AudioStreamPlayer Eat Apple" type="AudioStreamPlayer" parent="AspectRatioContainer/Map"]
|
|
|
|
stream = ExtResource("4_a0lry")
|
|
|
|
|
|
|
|
[node name="AudioStreamPlayer Bonk" type="AudioStreamPlayer" parent="AspectRatioContainer/Map"]
|
|
|
|
stream = ExtResource("5_btrdr")
|