[gd_scene format=3 uid="uid://bxt4kgs6px3t8"]

[ext_resource type="Texture2D" uid="uid://b2pm032d5tqwb" path="res://sprites/field.png" id="1_iywne"]
[ext_resource type="AudioStream" uid="uid://bdykhfqrftuvv" path="res://music/fostral.wav" id="1_trtic"]
[ext_resource type="AudioStream" uid="uid://cuiseagt5rk7h" path="res://music/glorx.wav" id="2_ir15t"]
[ext_resource type="Script" uid="uid://caf4h6lok18so" path="res://ui/hand.gd" id="2_u5sy4"]
[ext_resource type="Script" uid="uid://rt6mxr30u8tp" path="res://systems/grid.gd" id="7_u5sy4"]
[ext_resource type="Script" uid="uid://bmy5djjmiljhl" path="res://systems/grid_highlighter.gd" id="8_gee14"]
[ext_resource type="Script" uid="uid://dgd30yiw5q368" path="res://systems/grid_reciever.gd" id="9_0tnpc"]
[ext_resource type="Script" uid="uid://h5e6xh30ni5n" path="res://ui/debug_gameplay_buttons.gd" id="9_kvuet"]
[ext_resource type="Script" uid="uid://bkh50fstwbb6s" path="res://systems/grid_arranger.gd" id="10_vtaks"]

[sub_resource type="AudioStreamPlaylist" id="AudioStreamPlaylist_trtic"]
shuffle = true
stream_count = 4
stream_0 = ExtResource("1_trtic")
stream_1 = ExtResource("2_ir15t")

[node name="Game" type="Node2D" unique_id=619820575]

[node name="MusicPlayer" type="AudioStreamPlayer" parent="." unique_id=1956514678]
stream = SubResource("AudioStreamPlaylist_trtic")
volume_db = -20.0
autoplay = true

[node name="Field" type="Sprite2D" parent="." unique_id=1104378711]
texture = ExtResource("1_iywne")
centered = false
metadata/_edit_lock_ = true

[node name="PlayerInterface" type="CanvasLayer" parent="." unique_id=269857956]

[node name="Hand" type="Control" parent="PlayerInterface" unique_id=903928048]
layout_mode = 3
anchors_preset = 14
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_top = 786.0
offset_bottom = 786.0
grow_horizontal = 2
grow_vertical = 2
pivot_offset_ratio = Vector2(0.5, 0)
script = ExtResource("2_u5sy4")
radius = 512.0
arch = 1.0789625435828945

[node name="Control" type="Control" parent="PlayerInterface" unique_id=1188494258]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
script = ExtResource("9_kvuet")

[node name="VBoxContainer" type="VBoxContainer" parent="PlayerInterface/Control" unique_id=1060171104]
layout_mode = 0
offset_right = 40.0
offset_bottom = 40.0
mouse_filter = 2

[node name="DrawCard" type="Button" parent="PlayerInterface/Control/VBoxContainer" unique_id=1058516143]
layout_mode = 2
theme_override_font_sizes/font_size = 32
text = "Draw card"

[node name="Grid" type="Node2D" parent="." unique_id=1478060666 node_paths=PackedStringArray("right_border_marker")]
position = Vector2(398, 162)
script = ExtResource("7_u5sy4")
rows = 5
columns = 5
right_border_marker = NodePath("../GridMarker")
metadata/_custom_type_script = "uid://rt6mxr30u8tp"

[node name="Highlighter" type="Node2D" parent="Grid" unique_id=69750982]
script = ExtResource("8_gee14")

[node name="Reciever" type="Node" parent="Grid" unique_id=898766746]
script = ExtResource("9_0tnpc")

[node name="Arranger" type="Node" parent="Grid" unique_id=1638122526]
script = ExtResource("10_vtaks")

[node name="GridMarker" type="Marker2D" parent="." unique_id=1656515901]
position = Vector2(801, 567)

[node name="Camera2D" type="Camera2D" parent="." unique_id=1988509991]
position = Vector2(0, 142)
anchor_mode = 0
zoom = Vector2(1.5, 1.5)

[connection signal="pressed" from="PlayerInterface/Control/VBoxContainer/DrawCard" to="PlayerInterface/Control" method="_on_draw_card_pressed"]
