Snake/Scene/Game.tscn
Snoweuph 3037c1fce0 - Switching from sprites to UI Elements
- Binding Main Menu and Game Scene Together
TODO: Settings, Score, Highscore, Controller Support, Color Pallet Rework
2023-03-31 19:01:28 +02:00

49 lines
1.5 KiB
Text

[gd_scene load_steps=5 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"]
[sub_resource type="Resource" id="Resource_22g0s"]
script = ExtResource("3_gnesl")
empty = Color(0.2, 0.247059, 0.180392, 1)
snake_head = Color(0.517647, 0.803922, 0.647059, 1)
snake_body = Color(0.262745, 0.486275, 0.368627, 1)
apple = Color(0.941176, 0.396078, 0.396078, 1)
[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
[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")
map_size = 25
texture = ExtResource("2_wiemx")
tile_color = SubResource("Resource_22g0s")