Snake/Scene/Game.tscn

50 lines
1.5 KiB
Text
Raw Normal View History

2023-03-27 16:05:03 +00:00
[gd_scene load_steps=5 format=3 uid="uid://drs4bhpd3vrh2"]
2023-02-06 12:47:18 +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"]
[ext_resource type="Script" path="res://Scripts/TileColors.gd" id="3_gnesl"]
[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)
snake_head = Color(0.603922, 0.647059, 0.486275, 1)
snake_body = Color(0.603922, 0.647059, 0.486275, 1)
apple = Color(0.878431, 0.913725, 0.768627, 1)
2023-02-06 12:47:18 +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="."]
[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
color = Color(0.0784314, 0.105882, 0.0666667, 1)
[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
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")
tile_color = SubResource("Resource_22g0s")