Snake/Scene/Game.tscn

57 lines
1.9 KiB
Text

[gd_scene load_steps=7 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"]
[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"]
[sub_resource type="Resource" id="Resource_22g0s"]
script = ExtResource("3_gnesl")
empty = Color(0.294118, 0.337255, 0.301961, 1)
snake_head = Color(0.878431, 0.913725, 0.768627, 1)
snake_body = Color(0.603922, 0.647059, 0.486275, 1)
apple = Color(0.909804, 0.462745, 0.462745, 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.145098, 0.145098, 0.145098, 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 = 10
texture = ExtResource("2_wiemx")
tile_color = SubResource("Resource_22g0s")
[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")