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

[ext_resource type="Script" uid="uid://40ykqd27yux" path="res://Scene/game.gd" id="1_8f6ah"]
[ext_resource type="Material" uid="uid://brrbuo0i0e5bh" path="res://Materials/piece_white.tres" id="4_yjs1f"]
[ext_resource type="Resource" uid="uid://cbwd1rtruemqj" path="res://Resources/Pieces/pawn.tres" id="5_sagxc"]
[ext_resource type="ArrayMesh" uid="uid://cbr1tmaelnbwv" path="res://Models/queen.obj" id="5_vyw1f"]
[ext_resource type="Script" uid="uid://by68phh60fpjr" path="res://Scripts/Rules/rook.gd" id="6_cvvdq"]
[ext_resource type="Resource" uid="uid://cah56vr1263v1" path="res://Resources/Pieces/knight.tres" id="6_h8jt7"]
[ext_resource type="PackedScene" uid="uid://2cqjdxpi6ave" path="res://Scene/board.tscn" id="6_thj8p"]
[ext_resource type="Resource" uid="uid://drhygbtu4bbiq" path="res://Resources/Pieces/bishop.tres" id="7_h8jt7"]
[ext_resource type="Script" uid="uid://cfwpyvuiwr1ph" path="res://Scripts/Rules/bishop.gd" id="7_m52p7"]
[ext_resource type="PackedScene" uid="uid://ci6k70kme7egj" path="res://Scene/Pieces/piece.tscn" id="7_sagxc"]
[ext_resource type="Resource" uid="uid://cso00cln3awgu" path="res://Resources/Pieces/rook.tres" id="8_sagxc"]
[ext_resource type="Script" uid="uid://c7dd1y3vdajk5" path="res://Resources/piece_res.gd" id="8_vy0et"]
[ext_resource type="Script" uid="uid://c11aaiot3b336" path="res://Scene/Pieces/piece.gd" id="9_8f6ah"]
[ext_resource type="Resource" uid="uid://ekgey785opq5" path="res://Resources/Pieces/king.tres" id="10_twwsd"]

[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_w51g1"]
sky_top_color = Color(0.5579281, 0.62864333, 0.7231204, 1)
sky_horizon_color = Color(0.91311014, 0.9435101, 1.0699847, 1)
ground_bottom_color = Color(0.18326113, 0.23414573, 0.6455667, 1)
ground_horizon_color = Color(0.91311014, 0.9435101, 1.0699847, 1)

[sub_resource type="Sky" id="Sky_4jv7b"]
sky_material = SubResource("ProceduralSkyMaterial_w51g1")

[sub_resource type="Environment" id="Environment_03iqk"]
background_mode = 2
sky = SubResource("Sky_4jv7b")
tonemap_mode = 2
ssr_enabled = true
ssao_enabled = true
ssil_enabled = true
glow_enabled = true
fog_light_color = Color(0.13823166, 0.1502127, 0.16818427, 1)
fog_light_energy = 1.5
fog_sun_scatter = 0.3
fog_aerial_perspective = 0.113
adjustment_enabled = true

[sub_resource type="Resource" id="Resource_yjs1f"]
resource_local_to_scene = true
script = ExtResource("8_vy0et")
movement_speed = 10.0
mesh = ExtResource("5_vyw1f")
material = ExtResource("4_yjs1f")
rules = Array[Script]([ExtResource("6_cvvdq"), ExtResource("7_m52p7")])
metadata/_custom_type_script = "uid://c7dd1y3vdajk5"

[node name="Game" type="Node3D" unique_id=1842930265]
script = ExtResource("1_8f6ah")

[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=40612833]
transform = Transform3D(-0.8660254, -0.43301278, 0.25, 0, 0.49999997, 0.86602545, -0.50000006, 0.75, -0.43301266, 0, 0, 0)
shadow_enabled = true

[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=1076837797]
environment = SubResource("Environment_03iqk")

[node name="Camera3D" type="Camera3D" parent="." unique_id=816896196]
transform = Transform3D(-1, 8.7422784e-08, 2.0779702e-15, 1.0542077e-08, 0.1205873, 0.9927028, 8.678483e-08, 0.9927028, -0.1205873, 7, 15.866533, 5.295808)

[node name="OmniLight3D" type="OmniLight3D" parent="." unique_id=675296854]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 26.254642, 0)

[node name="Node3D" type="Node3D" parent="." unique_id=1118485116]

[node name="Board" parent="." unique_id=934988573 instance=ExtResource("6_thj8p")]

[node name="Pieces" type="Node3D" parent="." unique_id=393239626]

[node name="Queen" parent="Pieces" unique_id=410020425 groups=["Pieces", "PlayerPieces"] instance=ExtResource("7_sagxc")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, 4)
piece_res = SubResource("Resource_yjs1f")
team = "us"

[node name="Pawn5" parent="Pieces" unique_id=214368826 groups=["Pieces", "PlayerPieces"] instance=ExtResource("7_sagxc")]
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 6, 0, 2)
piece_res = ExtResource("5_sagxc")
team = "us"

[node name="Pawn6" parent="Pieces" unique_id=353236800 groups=["Pieces", "PlayerPieces"] instance=ExtResource("7_sagxc")]
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 4, 0, 2)
piece_res = ExtResource("5_sagxc")
team = "us"

[node name="Pawn7" parent="Pieces" unique_id=667979117 groups=["Pieces", "PlayerPieces"] instance=ExtResource("7_sagxc")]
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 2, 0, 2)
piece_res = ExtResource("5_sagxc")
team = "us"

[node name="Pawn8" parent="Pieces" unique_id=279147143 groups=["Pieces", "PlayerPieces"] instance=ExtResource("7_sagxc")]
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 0, 0, 8)
piece_res = ExtResource("5_sagxc")
team = "us"

[node name="Knight" parent="Pieces" unique_id=828740381 groups=["Enemy", "Pieces"] instance=ExtResource("7_sagxc")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 10)
piece_res = ExtResource("6_h8jt7")
team = "them"

[node name="Knight2" parent="Pieces" unique_id=905424274 groups=["Enemy", "Pieces"] instance=ExtResource("7_sagxc")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12, 0, 8)
piece_res = ExtResource("6_h8jt7")
team = "them"

[node name="Rook3" parent="Pieces" unique_id=537334881 groups=["Pieces"] instance=ExtResource("7_sagxc")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 0, 8)
piece_res = ExtResource("8_sagxc")
team = "us"

[node name="Rook" parent="Pieces" unique_id=457900680 groups=["Pieces", "PlayerPieces"] instance=ExtResource("7_sagxc")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0, 8)
piece_res = ExtResource("8_sagxc")
team = "them"

[node name="Bishop" parent="Pieces" unique_id=839312457 groups=["Pieces", "PlayerPieces"] instance=ExtResource("7_sagxc")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 8)
piece_res = ExtResource("7_h8jt7")
team = "them"

[node name="King" type="Node3D" parent="Pieces" unique_id=345844088 groups=["Pieces", "PlayerPieces"]]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 0, 2)
script = ExtResource("9_8f6ah")
piece_res = ExtResource("10_twwsd")
metadata/_custom_type_script = "uid://c11aaiot3b336"
