pieces can rotate while moving

whe can color pieces dynamically

pieces have collider and can kill each other
This commit is contained in:
francis 2026-03-06 22:46:34 +01:00
parent 3ea7bfd5dc
commit 026d634c3a
18 changed files with 283 additions and 263 deletions

View file

@ -1,4 +1,4 @@
[gd_resource type="StandardMaterial3D" format=3 uid="uid://bekkxcgjt3hct"] [gd_resource type="StandardMaterial3D" format=3 uid="uid://bekkxcgjt3hct"]
[resource] [resource]
albedo_color = Color(0.62450397, 0, 0.0449206, 1) albedo_color = Color(1, 0.15686275, 0, 1)

Binary file not shown.

BIN
Models/low_poly_bishop.blend Executable file → Normal file

Binary file not shown.

BIN
Models/low_poly_bishop.blend1 Executable file → Normal file

Binary file not shown.

View file

@ -1,4 +1,4 @@
# Blender 5.0.0 MTL File: 'low_poly_bishop.blend' # Blender 5.0.1 MTL File: 'low_poly_bishop.blend'
# www.blender.org # www.blender.org
newmtl Material.001 newmtl Material.001

View file

@ -1,9 +1,87 @@
# Blender 5.0.0 # Blender 5.0.1
# www.blender.org # www.blender.org
mtllib low_poly_bishop.mtl mtllib low_poly_bishop.mtl
o Bishop o Bishop
v 0.000000 0.000000 0.000000 v 0.000000 0.000000 0.000000
v 0.000000 0.000000 0.000000 v 0.000000 0.000000 0.000000
v -1.000010 0.000000 -0.000000
v -1.000010 0.460098 -0.000000
v -0.953061 0.478878 -0.000000
v -1.028179 0.535216 -0.000000
v -0.971840 0.732401 -0.000000
v -0.615029 0.877943 -0.000000
v -0.694842 0.976535 -0.000000
v -0.361506 1.464803 -0.000000
v -0.286388 1.915511 -0.000000
v -0.305167 2.483592 -0.000000
v -0.530521 2.544625 -0.000000
v -0.586860 2.788759 -0.000000
v -0.417844 2.840403 -0.000000
v -0.399065 2.882657 -0.000000
v -0.234744 2.906131 -0.000000
v -0.220659 3.023503 -0.000000
v -0.394370 3.112706 -0.000000
v -0.394370 3.159655 -0.000000
v -0.539911 3.338060 -0.000000
v -0.568080 3.539940 -0.000000
v -0.234744 3.962479 -0.000000
v -0.117372 4.131495 -0.000001
v -0.225354 4.230087 -0.000001
v 0.000000 4.469526 -0.000001
v 0.000000 0.000000 0.000000
v 0.000000 0.000000 0.000000
v -0.500005 0.000000 0.866034
v -0.500005 0.460098 0.866034
v -0.476530 0.478878 0.825375
v -0.514089 0.535216 0.890429
v -0.485920 0.732401 0.841638
v -0.307515 0.877943 0.532631
v -0.347421 0.976535 0.601751
v -0.180753 1.464803 0.313073
v -0.143194 1.915511 0.248019
v -0.152584 2.483592 0.264282
v -0.265261 2.544625 0.459445
v -0.293430 2.788759 0.508235
v -0.208922 2.840403 0.361864
v -0.199533 2.882657 0.345600
v -0.117372 2.906131 0.203294
v -0.110330 3.023503 0.191096
v -0.197185 3.112706 0.341534
v -0.197185 3.159655 0.341534
v -0.269956 3.338060 0.467577
v -0.284041 3.539940 0.491972
v -0.117372 3.962479 0.203294
v -0.058686 4.131495 0.101647
v -0.112678 4.230087 0.195162
v -0.000000 4.469526 -0.000000
v 0.000000 0.000000 0.000000
v 0.000000 0.000000 0.000000
v 0.500005 0.000000 0.866034
v 0.500005 0.460098 0.866034
v 0.476530 0.478878 0.825375
v 0.514089 0.535216 0.890429
v 0.485920 0.732401 0.841638
v 0.307515 0.877943 0.532631
v 0.347421 0.976535 0.601751
v 0.180753 1.464803 0.313073
v 0.143194 1.915511 0.248019
v 0.152583 2.483592 0.264283
v 0.265260 2.544625 0.459445
v 0.293430 2.788759 0.508236
v 0.208922 2.840403 0.361864
v 0.199532 2.882657 0.345600
v 0.117372 2.906131 0.203294
v 0.110329 3.023503 0.191097
v 0.197185 3.112706 0.341534
v 0.197185 3.159655 0.341534
v 0.269955 3.338060 0.467577
v 0.284040 3.539940 0.491972
v 0.117372 3.962479 0.203294
v 0.058686 4.131495 0.101647
v 0.112677 4.230087 0.195163
v -0.000000 4.469526 0.000000
v 0.000000 0.000000 0.000000
v 0.000000 0.000000 0.000000
v 1.000010 0.000000 0.000000 v 1.000010 0.000000 0.000000
v 1.000010 0.460098 0.000000 v 1.000010 0.460098 0.000000
v 0.953061 0.478878 0.000000 v 0.953061 0.478878 0.000000
@ -61,7 +139,7 @@ v -0.500005 0.460098 -0.866034
v -0.476530 0.478878 -0.825375 v -0.476530 0.478878 -0.825375
v -0.514089 0.535216 -0.890429 v -0.514089 0.535216 -0.890429
v -0.485920 0.732401 -0.841638 v -0.485920 0.732401 -0.841638
v -0.307515 0.877943 -0.532631 v -0.307514 0.877943 -0.532631
v -0.347421 0.976535 -0.601751 v -0.347421 0.976535 -0.601751
v -0.180753 1.464803 -0.313073 v -0.180753 1.464803 -0.313073
v -0.143194 1.915511 -0.248019 v -0.143194 1.915511 -0.248019
@ -72,116 +150,26 @@ v -0.208922 2.840403 -0.361864
v -0.199532 2.882657 -0.345600 v -0.199532 2.882657 -0.345600
v -0.117372 2.906131 -0.203294 v -0.117372 2.906131 -0.203294
v -0.110329 3.023503 -0.191097 v -0.110329 3.023503 -0.191097
v -0.197185 3.112706 -0.341534 v -0.197185 3.112706 -0.341535
v -0.197185 3.159655 -0.341534 v -0.197185 3.159655 -0.341535
v -0.269955 3.338060 -0.467577 v -0.269955 3.338060 -0.467577
v -0.284040 3.539940 -0.491972 v -0.284040 3.539940 -0.491972
v -0.117372 3.962479 -0.203294 v -0.117371 3.962479 -0.203294
v -0.058686 4.131495 -0.101647 v -0.058685 4.131495 -0.101647
v -0.112677 4.230087 -0.195163 v -0.112677 4.230087 -0.195163
v 0.000000 4.469526 -0.000000 v 0.000000 4.469526 -0.000000
v 0.000000 0.000000 0.000000
v 0.000000 0.000000 0.000000
v -1.000010 0.000000 0.000000
v -1.000010 0.460098 0.000000
v -0.953061 0.478878 0.000000
v -1.028179 0.535216 0.000000
v -0.971840 0.732401 0.000000
v -0.615029 0.877943 -0.000000
v -0.694842 0.976535 -0.000000
v -0.361506 1.464803 -0.000000
v -0.286388 1.915511 -0.000000
v -0.305167 2.483592 -0.000000
v -0.530521 2.544625 -0.000000
v -0.586860 2.788759 -0.000000
v -0.417844 2.840403 -0.000000
v -0.399065 2.882657 -0.000000
v -0.234744 2.906131 -0.000000
v -0.220659 3.023503 -0.000000
v -0.394370 3.112706 -0.000000
v -0.394370 3.159655 -0.000000
v -0.539911 3.338060 -0.000000
v -0.568080 3.539940 -0.000000
v -0.234744 3.962479 -0.000000 v -0.234744 3.962479 -0.000000
v -0.117372 4.131495 -0.000000 v -0.568080 3.539940 -0.000000
v -0.225354 4.230087 -0.000000
v -0.000000 4.469526 -0.000001
v 0.000000 0.000000 0.000000
v 0.000000 0.000000 0.000000
v -0.500005 0.000000 0.866034
v -0.500005 0.460098 0.866034
v -0.476530 0.478878 0.825375
v -0.514089 0.535216 0.890429
v -0.485920 0.732401 0.841638
v -0.307515 0.877943 0.532631
v -0.347421 0.976535 0.601751
v -0.180753 1.464803 0.313073
v -0.143194 1.915511 0.248019
v -0.152584 2.483592 0.264282
v -0.265261 2.544625 0.459445
v -0.293430 2.788759 0.508235
v -0.208922 2.840403 0.361864
v -0.199533 2.882657 0.345600
v -0.117372 2.906131 0.203294
v -0.110330 3.023503 0.191096
v -0.197185 3.112706 0.341534
v -0.197185 3.159655 0.341534
v -0.269956 3.338060 0.467577
v -0.284041 3.539940 0.491972 v -0.284041 3.539940 0.491972
v -0.117372 3.962479 0.203294 v -0.117372 3.962479 0.203294
v -0.058686 4.131495 0.101647
v -0.112677 4.230087 0.195162
v -0.000000 4.469526 -0.000000
v 0.000000 0.000000 0.000000
v 0.000000 0.000000 0.000000
v 0.500005 0.000000 0.866034
v 0.500005 0.460098 0.866034
v 0.476530 0.478878 0.825375
v 0.514089 0.535216 0.890429
v 0.485920 0.732401 0.841638
v 0.307515 0.877943 0.532631
v 0.347421 0.976535 0.601751
v 0.180753 1.464803 0.313073
v 0.143194 1.915511 0.248019
v 0.152583 2.483592 0.264283
v 0.265260 2.544625 0.459445
v 0.293430 2.788759 0.508236
v 0.208922 2.840403 0.361864
v 0.199532 2.882657 0.345600
v 0.117372 2.906131 0.203294
v 0.110329 3.023503 0.191097
v 0.197185 3.112706 0.341534
v 0.197185 3.159655 0.341534
v 0.269955 3.338060 0.467577
v 0.284040 3.539940 0.491972 v 0.284040 3.539940 0.491972
v 0.117372 3.962479 0.203294 v 0.117372 3.962479 0.203294
v 0.058685 4.131495 0.101647
v 0.112677 4.230087 0.195163
v -0.000000 4.469526 0.000000
v 0.234744 3.962479 0.000000
v 0.568080 3.539940 0.000000 v 0.568080 3.539940 0.000000
v 0.284041 3.539940 -0.491972 v 0.234744 3.962479 0.000000
v 0.117372 3.962479 -0.203294
v -0.284040 3.539940 -0.491972
v -0.117372 3.962479 -0.203294
v -0.568080 3.539940 -0.000000
v -0.234744 3.962479 -0.000000
v 0.301411 3.877971 0.000000
v 0.368079 3.793463 0.000000
v 0.434746 3.708956 0.000000
v 0.501413 3.624448 0.000000
v -0.301411 3.877971 -0.000000 v -0.301411 3.877971 -0.000000
v -0.368079 3.793463 -0.000000 v -0.368079 3.793463 -0.000000
v -0.434746 3.708956 -0.000000 v -0.434746 3.708956 -0.000000
v -0.501413 3.624448 -0.000000 v -0.501413 3.624448 -0.000000
v -0.150706 3.877971 0.261030
v -0.184040 3.793463 0.318765
v -0.217373 3.708956 0.376501
v -0.250707 3.624448 0.434236
v 0.150705 3.877971 0.261030
v 0.184039 3.793463 0.318766
v 0.217372 3.708956 0.376501
v 0.250706 3.624448 0.434237
v 0.301411 3.877971 0.000000 v 0.301411 3.877971 0.000000
v 0.368079 3.793463 0.000000 v 0.368079 3.793463 0.000000
v 0.434746 3.708956 0.000000 v 0.434746 3.708956 0.000000
@ -192,154 +180,166 @@ v 0.217373 3.708956 -0.376501
v 0.250707 3.624448 -0.434236 v 0.250707 3.624448 -0.434236
v -0.150705 3.877971 -0.261030 v -0.150705 3.877971 -0.261030
v -0.184039 3.793463 -0.318766 v -0.184039 3.793463 -0.318766
v -0.217373 3.708956 -0.376501 v -0.217372 3.708956 -0.376501
v -0.250706 3.624448 -0.434237 v -0.250706 3.624448 -0.434237
v -0.301411 3.877971 -0.000000 v -0.301411 3.877971 -0.000000
v -0.368079 3.793463 -0.000000 v -0.368079 3.793463 -0.000000
v -0.434746 3.708956 -0.000000 v -0.434746 3.708956 -0.000000
v -0.501413 3.624448 -0.000000 v -0.501413 3.624448 -0.000000
v -0.150706 3.877971 0.261030
v -0.184040 3.793463 0.318765 v -0.184040 3.793463 0.318765
v -0.217373 3.708956 0.376501 v -0.217373 3.708956 0.376501
v -0.250707 3.624448 0.434236
v 0.150705 3.877971 0.261030
v 0.184039 3.793463 0.318766 v 0.184039 3.793463 0.318766
v 0.217372 3.708956 0.376501 v 0.217373 3.708956 0.376501
v 0.250706 3.624448 0.434237
v 0.301411 3.877971 0.000000
v 0.368079 3.793463 0.000000
v 0.434746 3.708956 0.000000
v 0.501413 3.624448 0.000000
v 0.184040 3.793463 -0.318765
v 0.217373 3.708956 -0.376501
v -0.184039 3.793463 -0.318766
v -0.217372 3.708956 -0.376501
vn -0.0000 1.0000 -0.0000 vn -0.0000 1.0000 -0.0000
vn -0.0000 -1.0000 -0.0000 vn -0.0000 -1.0000 -0.0000
vn 0.8660 -0.0000 -0.5000
vn -0.0000 -0.0000 -1.0000
vn -0.8660 -0.0000 -0.5000
vn -0.8660 -0.0000 0.5000 vn -0.8660 -0.0000 0.5000
vn -0.0000 -0.0000 1.0000 vn -0.0000 -0.0000 1.0000
vn 0.8660 -0.0000 0.5000 vn 0.8660 -0.0000 0.5000
vn 0.3631 0.9078 -0.2097 vn 0.8660 -0.0000 -0.5000
vn -0.0000 0.9078 -0.4193 vn -0.0000 -0.0000 -1.0000
vn -0.3631 0.9078 -0.2097 vn -0.8660 -0.0000 -0.5000
vn -0.3631 0.9078 0.2097 vn -0.3631 0.9078 0.2097
vn -0.0000 0.9078 0.4193 vn -0.0000 0.9078 0.4193
vn 0.3631 0.9078 0.2097 vn 0.3631 0.9078 0.2097
vn 0.5669 -0.7559 -0.3273 vn 0.3631 0.9078 -0.2097
vn -0.0000 -0.7559 -0.6547 vn -0.0000 0.9078 -0.4193
vn -0.5669 -0.7559 -0.3273 vn -0.3631 0.9078 -0.2097
vn -0.5669 -0.7559 0.3273 vn -0.5669 -0.7559 0.3273
vn -0.0000 -0.7559 0.6547 vn -0.0000 -0.7559 0.6547
vn 0.5669 -0.7559 0.3273 vn 0.5669 -0.7559 0.3273
vn 0.8407 0.2402 -0.4854 vn 0.5669 -0.7559 -0.3273
vn -0.0000 0.2402 -0.9707 vn -0.0000 -0.7559 -0.6547
vn -0.8407 0.2402 -0.4854 vn -0.5669 -0.7559 -0.3273
vn -0.8407 0.2402 0.4854 vn -0.8407 0.2402 0.4854
vn -0.0000 0.2402 0.9707 vn -0.0000 0.2402 0.9707
vn 0.8407 0.2402 0.4854 vn 0.8407 0.2402 0.4854
vn 0.3690 0.9047 -0.2130 vn 0.8407 0.2402 -0.4854
vn -0.0000 0.9047 -0.4261 vn -0.0000 0.2402 -0.9707
vn -0.3690 0.9047 -0.2130 vn -0.8407 0.2402 -0.4854
vn -0.3690 0.9047 0.2130 vn -0.3690 0.9047 0.2130
vn -0.0000 0.9047 0.4261 vn -0.0000 0.9047 0.4261
vn 0.3690 0.9047 0.2130 vn 0.3690 0.9047 0.2130
vn 0.7091 -0.5740 -0.4094 vn 0.3690 0.9047 -0.2130
vn -0.0000 -0.5740 -0.8188 vn -0.0000 0.9047 -0.4261
vn -0.7091 -0.5740 -0.4094 vn -0.3690 0.9047 -0.2130
vn -0.7091 -0.5740 0.4094 vn -0.7091 -0.5740 0.4094
vn -0.0000 -0.5740 0.8188 vn -0.0000 -0.5740 0.8188
vn 0.7091 -0.5740 0.4094 vn 0.7091 -0.5740 0.4094
vn 0.7455 0.5089 -0.4304 vn 0.7091 -0.5740 -0.4094
vn -0.0000 0.5089 -0.8608 vn -0.0000 -0.5740 -0.8188
vn -0.7455 0.5089 -0.4304 vn -0.7091 -0.5740 -0.4094
vn -0.7455 0.5089 0.4304 vn -0.7455 0.5089 0.4304
vn -0.0000 0.5089 0.8608 vn -0.0000 0.5089 0.8608
vn 0.7455 0.5089 0.4304 vn 0.7455 0.5089 0.4304
vn 0.8571 0.1429 -0.4949 vn 0.7455 0.5089 -0.4304
vn -0.0000 0.1429 -0.9897 vn -0.0000 0.5089 -0.8608
vn -0.8571 0.1429 -0.4949 vn -0.7455 0.5089 -0.4304
vn -0.8571 0.1429 0.4949 vn -0.8571 0.1429 0.4949
vn -0.0000 0.1429 0.9897 vn -0.0000 0.1429 0.9897
vn 0.8571 0.1429 0.4949 vn 0.8571 0.1429 0.4949
vn 0.8657 -0.0286 -0.4998 vn 0.8571 0.1429 -0.4949
vn -0.0000 -0.0286 -0.9996 vn -0.0000 0.1429 -0.9897
vn -0.8657 -0.0286 -0.4998 vn -0.8571 0.1429 -0.4949
vn -0.8657 -0.0286 0.4998 vn -0.8657 -0.0286 0.4998
vn -0.0000 -0.0286 0.9996 vn -0.0000 -0.0286 0.9996
vn 0.8657 -0.0286 0.4998 vn 0.8657 -0.0286 0.4998
vn 0.2585 -0.9544 -0.1492 vn 0.8657 -0.0286 -0.4998
vn -0.0000 -0.9544 -0.2985 vn -0.0000 -0.0286 -0.9996
vn -0.2585 -0.9544 -0.1492 vn -0.8657 -0.0286 -0.4998
vn -0.2585 -0.9544 0.1492 vn -0.2585 -0.9544 0.1492
vn -0.0000 -0.9544 0.2985 vn -0.0000 -0.9544 0.2985
vn 0.2585 -0.9544 0.1492 vn 0.2585 -0.9544 0.1492
vn 0.8492 -0.1960 -0.4903 vn 0.2585 -0.9544 -0.1492
vn -0.0000 -0.1960 -0.9806 vn -0.0000 -0.9544 -0.2985
vn -0.8492 -0.1960 -0.4903 vn -0.2585 -0.9544 -0.1492
vn -0.8492 -0.1960 0.4903 vn -0.8492 -0.1960 0.4903
vn -0.0000 -0.1960 0.9806 vn -0.0000 -0.1960 0.9806
vn 0.8492 -0.1960 0.4903 vn 0.8492 -0.1960 0.4903
vn 0.2881 0.9430 -0.1664 vn 0.8492 -0.1960 -0.4903
vn -0.0000 0.9430 -0.3327 vn -0.0000 -0.1960 -0.9806
vn -0.2881 0.9430 -0.1664 vn -0.8492 -0.1960 -0.4903
vn -0.2881 0.9430 0.1664 vn -0.2881 0.9430 0.1664
vn -0.0000 0.9430 0.3327 vn -0.0000 0.9430 0.3327
vn 0.2881 0.9430 0.1664 vn 0.2881 0.9430 0.1664
vn 0.8082 0.3592 -0.4666 vn 0.2881 0.9430 -0.1664
vn -0.0000 0.3592 -0.9333 vn -0.0000 0.9430 -0.3327
vn -0.8082 0.3592 -0.4666 vn -0.2881 0.9430 -0.1664
vn -0.8082 0.3592 0.4666 vn -0.8082 0.3592 0.4666
vn -0.0000 0.3592 0.9333 vn -0.0000 0.3592 0.9333
vn 0.8082 0.3592 0.4666 vn 0.8082 0.3592 0.4666
vn 0.1410 0.9867 -0.0814 vn 0.8082 0.3592 -0.4666
vn -0.0000 0.9867 -0.1628 vn -0.0000 0.3592 -0.9333
vn -0.1410 0.9867 -0.0814 vn -0.8082 0.3592 -0.4666
vn -0.1410 0.9867 0.0814 vn -0.1410 0.9867 0.0814
vn -0.0000 0.9867 0.1628 vn -0.0000 0.9867 0.1628
vn 0.1410 0.9867 0.0814 vn 0.1410 0.9867 0.0814
vn 0.8614 0.1034 -0.4973 vn 0.1410 0.9867 -0.0814
vn -0.0000 0.1034 -0.9946 vn -0.0000 0.9867 -0.1628
vn -0.8614 0.1034 -0.4973 vn -0.1410 0.9867 -0.0814
vn -0.8614 0.1034 0.4973 vn -0.8614 0.1034 0.4973
vn -0.0000 0.1034 0.9946 vn -0.0000 0.1034 0.9946
vn 0.8614 0.1034 0.4973 vn 0.8614 0.1034 0.4973
vn 0.4417 -0.8602 -0.2550 vn 0.8614 0.1034 -0.4973
vn -0.0000 -0.8602 -0.5100 vn -0.0000 0.1034 -0.9946
vn -0.4417 -0.8602 -0.2550 vn -0.8614 0.1034 -0.4973
vn -0.4417 -0.8602 0.2550 vn -0.4417 -0.8602 0.2550
vn -0.0000 -0.8602 0.5100 vn -0.0000 -0.8602 0.5100
vn 0.4417 -0.8602 0.2550 vn 0.4417 -0.8602 0.2550
vn 0.7073 -0.5770 -0.4084 vn 0.4417 -0.8602 -0.2550
vn -0.0000 -0.5770 -0.8167 vn -0.0000 -0.8602 -0.5100
vn -0.7073 -0.5770 -0.4084 vn -0.4417 -0.8602 -0.2550
vn -0.7073 -0.5770 0.4084 vn -0.7073 -0.5770 0.4084
vn -0.0000 -0.5770 0.8167 vn -0.0000 -0.5770 0.8167
vn 0.7073 -0.5770 0.4084 vn 0.7073 -0.5770 0.4084
vn 0.8598 -0.1200 -0.4964 vn 0.7073 -0.5770 -0.4084
vn -0.0000 -0.1200 -0.9928 vn -0.0000 -0.5770 -0.8167
vn -0.8598 -0.1200 -0.4964 vn -0.7073 -0.5770 -0.4084
vn -0.8598 -0.1200 0.4964 vn -0.8598 -0.1200 0.4964
vn -0.0000 -0.1200 0.9928 vn -0.0000 -0.1200 0.9928
vn 0.8598 -0.1200 0.4964 vn 0.8598 -0.1200 0.4964
vn -0.7151 0.5641 0.4128 vn 0.8598 -0.1200 -0.4964
vn -0.0000 0.5641 0.8257 vn -0.0000 -0.1200 -0.9928
vn 0.7151 0.5641 0.4128 vn -0.8598 -0.1200 -0.4964
vn 0.7422 0.5154 -0.4285
vn -0.0000 0.5154 -0.8570
vn -0.7421 0.5154 -0.4285
vn -0.7422 0.5154 0.4285
vn -0.0000 0.5154 0.8570
vn 0.7421 0.5154 0.4285
vn 0.6283 -0.6882 -0.3628
vn -0.0000 -0.6882 -0.7255
vn -0.6283 -0.6882 -0.3628
vn -0.6283 -0.6882 0.3628
vn -0.0000 -0.6882 0.7255
vn 0.6283 -0.6882 0.3628
vn 0.6713 0.6318 -0.3876
vn -0.0000 0.6318 -0.7751
vn -0.6713 0.6318 -0.3876
vn -0.6713 0.6318 0.3876
vn -0.0000 0.6318 0.7751
vn 0.6713 0.6318 0.3876
vn 0.7151 0.5641 -0.4128 vn 0.7151 0.5641 -0.4128
vn -0.0000 0.5641 -0.8257 vn -0.0000 0.5641 -0.8257
vn -0.7151 0.5641 -0.4128 vn -0.7151 0.5641 -0.4128
vn -0.7151 0.5641 -0.4129 vn -0.7422 0.5154 0.4285
vn -0.0000 0.5154 0.8570
vn 0.7421 0.5154 0.4285
vn 0.7422 0.5154 -0.4285
vn -0.0000 0.5154 -0.8570
vn -0.7421 0.5154 -0.4285
vn -0.6283 -0.6882 0.3628
vn -0.0000 -0.6882 0.7255
vn 0.6283 -0.6882 0.3628
vn 0.6283 -0.6882 -0.3628
vn -0.0000 -0.6882 -0.7255
vn -0.6283 -0.6882 -0.3628
vn -0.6713 0.6318 0.3876
vn -0.0000 0.6318 0.7751
vn 0.6713 0.6318 0.3876
vn 0.6713 0.6318 -0.3876
vn -0.0000 0.6318 -0.7751
vn -0.6713 0.6318 -0.3876
vn -0.7151 0.5641 0.4128
vn -0.0000 0.5641 0.8257
vn 0.7151 0.5641 0.4128
vn 0.7151 0.5641 0.4129 vn 0.7151 0.5641 0.4129
vn -0.0000 -0.9666 0.2563 vn -0.7151 0.5641 -0.4129
vn -0.0000 0.9757 -0.2190 vn -0.0000 -0.9666 -0.2563
vn -0.0000 0.9757 0.2190
vt 0.000000 0.000000 vt 0.000000 0.000000
vt 0.166667 0.000000 vt 0.166667 0.000000
vt 0.333333 0.000000 vt 0.333333 0.000000
@ -700,8 +700,8 @@ f 100/137/1 172/144/1 196/144/1 163/137/1
f 172/144/1 171/177/1 195/177/1 196/144/1 f 172/144/1 171/177/1 195/177/1 196/144/1
f 171/177/1 170/178/1 194/178/1 195/177/1 f 171/177/1 170/178/1 194/178/1 195/177/1
f 170/178/1 169/176/1 193/176/1 194/178/1 f 170/178/1 169/176/1 193/176/1 194/178/1
f 162/149/134 189/179/134 193/176/134 164/151/134 f 162/149/135 189/179/135 193/176/135 164/151/135
f 189/179/135 190/180/135 194/178/135 193/176/135 f 189/179/134 190/180/134 194/178/134 193/176/134
f 190/180/134 191/181/134 195/177/134 194/178/134 f 190/180/134 191/181/134 195/177/134 194/178/134
f 191/181/134 192/175/134 196/144/134 195/177/134 f 191/181/134 192/175/134 196/144/134 195/177/134
f 160/142/133 185/182/133 189/179/133 162/149/133 f 160/142/133 185/182/133 189/179/133 162/149/133

View file

@ -7,6 +7,7 @@
[ext_resource type="Script" uid="uid://c7dd1y3vdajk5" path="res://Resources/piece_res.gd" id="4_35asj"] [ext_resource type="Script" uid="uid://c7dd1y3vdajk5" path="res://Resources/piece_res.gd" id="4_35asj"]
[resource] [resource]
resource_local_to_scene = true
script = ExtResource("4_35asj") script = ExtResource("4_35asj")
movement_speed = 10.0 movement_speed = 10.0
mesh = ExtResource("2_xk4k7") mesh = ExtResource("2_xk4k7")

View file

@ -1,6 +1,5 @@
[gd_resource type="Resource" script_class="PieceRes" format=3 uid="uid://cso00cln3awgu"] [gd_resource type="Resource" script_class="PieceRes" format=3 uid="uid://cso00cln3awgu"]
[ext_resource type="Material" uid="uid://brrbuo0i0e5bh" path="res://Materials/piece_white.tres" id="1_tmt7w"]
[ext_resource type="ArrayMesh" uid="uid://dbqrpgaheoj2r" path="res://Models/low_poly_rook.obj" id="2_xgnuu"] [ext_resource type="ArrayMesh" uid="uid://dbqrpgaheoj2r" path="res://Models/low_poly_rook.obj" id="2_xgnuu"]
[ext_resource type="Script" uid="uid://c7dd1y3vdajk5" path="res://Resources/piece_res.gd" id="3_e38o2"] [ext_resource type="Script" uid="uid://c7dd1y3vdajk5" path="res://Resources/piece_res.gd" id="3_e38o2"]
[ext_resource type="Script" uid="uid://by68phh60fpjr" path="res://Scripts/Rules/rook.gd" id="3_tmt7w"] [ext_resource type="Script" uid="uid://by68phh60fpjr" path="res://Scripts/Rules/rook.gd" id="3_tmt7w"]
@ -9,6 +8,5 @@
script = ExtResource("3_e38o2") script = ExtResource("3_e38o2")
movement_speed = 10.0 movement_speed = 10.0
mesh = ExtResource("2_xgnuu") mesh = ExtResource("2_xgnuu")
material = ExtResource("1_tmt7w")
rules = Array[Script]([ExtResource("3_tmt7w")]) rules = Array[Script]([ExtResource("3_tmt7w")])
metadata/_custom_type_script = "uid://c7dd1y3vdajk5" metadata/_custom_type_script = "uid://c7dd1y3vdajk5"

View file

@ -1,14 +0,0 @@
[gd_scene format=3 uid="uid://dsc2tova7rvx7"]
[ext_resource type="Script" uid="uid://c11aaiot3b336" path="res://Scene/Pieces/piece.gd" id="2_bmony"]
[ext_resource type="Material" uid="uid://bxg7bjgiqfnru" path="res://Materials/piece_black.tres" id="2_r76xr"]
[ext_resource type="ArrayMesh" uid="uid://c67nw3hvqrkev" path="res://Models/bishop.obj" id="3_r76xr"]
[node name="Bishop" type="Node3D" unique_id=1605941411]
script = ExtResource("2_bmony")
color = ExtResource("2_r76xr")
[node name="mesh" type="MeshInstance3D" parent="." unique_id=830382749]
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 0, 0, 0)
material_override = ExtResource("2_r76xr")
mesh = ExtResource("3_r76xr")

View file

@ -1,13 +0,0 @@
[gd_scene format=3 uid="uid://qjo2ij73xlok"]
[ext_resource type="Script" uid="uid://c11aaiot3b336" path="res://Scene/Pieces/piece.gd" id="1_ycl1t"]
[ext_resource type="Material" uid="uid://bxg7bjgiqfnru" path="res://Materials/piece_black.tres" id="2_5ys0t"]
[ext_resource type="ArrayMesh" uid="uid://bxtpbpxglphok" path="res://Models/king.obj" id="3_2gso2"]
[node name="King" type="Node3D" unique_id=1224931075]
script = ExtResource("1_ycl1t")
[node name="mesh" type="MeshInstance3D" parent="." unique_id=455294172]
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 0, 0, 0)
material_override = ExtResource("2_5ys0t")
mesh = ExtResource("3_2gso2")

View file

@ -1,12 +0,0 @@
[gd_scene format=3 uid="uid://di3qg1qnmy0p2"]
[ext_resource type="Script" uid="uid://c11aaiot3b336" path="res://Scene/Pieces/piece.gd" id="1_qbtkq"]
[ext_resource type="Material" uid="uid://bxg7bjgiqfnru" path="res://Materials/piece_black.tres" id="2_cka4e"]
[ext_resource type="ArrayMesh" uid="uid://hnlwpehvi3ok" path="res://Models/kight.obj" id="3_0w1en"]
[node name="Knight" type="Node3D" unique_id=1333208927]
script = ExtResource("1_qbtkq")
[node name="mesh" type="MeshInstance3D" parent="." unique_id=515809374]
material_override = ExtResource("2_cka4e")
mesh = ExtResource("3_0w1en")

2
Scene/Pieces/pawn.tscn Executable file → Normal file
View file

@ -1,4 +1,4 @@
[gd_scene format=3 uid="uid://dkl8itq74sajx"] [gd_scene format=3 uid="uid://b5qpodbykrgqw"]
[ext_resource type="Script" uid="uid://c11aaiot3b336" path="res://Scene/Pieces/piece.gd" id="1_nci4k"] [ext_resource type="Script" uid="uid://c11aaiot3b336" path="res://Scene/Pieces/piece.gd" id="1_nci4k"]
[ext_resource type="ArrayMesh" uid="uid://dn2vs5onakx6i" path="res://Models/pawn.obj" id="3_un5ic"] [ext_resource type="ArrayMesh" uid="uid://dn2vs5onakx6i" path="res://Models/pawn.obj" id="3_un5ic"]

View file

@ -4,18 +4,21 @@ extends Node3D
@export var piece_res : PieceRes @export var piece_res : PieceRes
var is_moving : bool = false var is_moving : bool = false
var is_rotating: bool = false
var rotation_target: Vector3
var target : Vector2 var target : Vector2
var start_pos :Vector3 var start_pos :Vector3
var start_coord: Vector2i var start_coord: Vector2i
var mesh_instance_3d: MeshInstance3D var mesh_instance_3d: MeshInstance3D
var possible_movements: Array[Vector2i] var possible_movements: Array[Vector2i]
#@export var color : StandardMaterial3D = preload("uid://brrbuo0i0e5bh") as StandardMaterial3D: @export var team: String = "us"
#set(material):
#color = material
#if Engine.is_editor_hint(): const PIECE_WHITE = preload("uid://brrbuo0i0e5bh")
#mesh.material_override = color const PIECE_RED = preload("uid://bekkxcgjt3hct")
#get: const PIECE_BLACK = preload("uid://bxg7bjgiqfnru")
#return color
@onready var attack_area_3d: Area3D = $AttackArea3D
# Called when the node enters the scene tree for the first time. # Called when the node enters the scene tree for the first time.
func _ready() -> void: func _ready() -> void:
for rule in piece_res.rules: for rule in piece_res.rules:
@ -23,9 +26,15 @@ func _ready() -> void:
print(piece_res.material) print(piece_res.material)
var mesh_instance = MeshInstance3D.new() var mesh_instance = MeshInstance3D.new()
mesh_instance.mesh = piece_res.mesh mesh_instance.mesh = piece_res.mesh
mesh_instance.mesh.surface_set_material(0,piece_res.material)
add_child(mesh_instance) add_child(mesh_instance)
mesh_instance_3d = mesh_instance mesh_instance_3d = mesh_instance
if team == "us":
add_to_group("PlayerPieces")
mesh_instance_3d.material_override = PIECE_WHITE
if team == "them":
print("dadwdawf<sef")
add_to_group("Enemy")
mesh_instance_3d.material_override = PIECE_RED
start_coord = to_coord() start_coord = to_coord()
@ -56,7 +65,11 @@ func _process(delta: float) -> void:
if position.z == target.y and position.x == target.x: if position.z == target.y and position.x == target.x:
is_moving = false is_moving = false
pass pass
if is_rotating:
if rotation_target == rotation:
is_moving = true
pass
pass pass
func move_to(new_target: Vector2): func move_to(new_target: Vector2):
@ -66,12 +79,33 @@ func move_to(new_target: Vector2):
#possible_movements = [Vector2i(0,1)] #possible_movements = [Vector2i(0,1)]
target = new_target * 2 target = new_target * 2
start_pos = position start_pos = position
#var angle = atan2((position.z - target.y),(position.x- target.x))
#rotation.y = angle
#rotate_y(angle)
look_at(Vector3(target.x,0,target.y), Vector3.UP)
is_moving = true is_moving = true
pass pass
func rotate_to(new_rotation: Vector3):
is_rotating = true
rotation_target = new_rotation
pass
func to_coord() -> Vector2i: func to_coord() -> Vector2i:
return Vector2i(position.x / 2, position.z / 2) return Vector2i(position.x / 2., position.z / 2.)
func die(): func die():
queue_free() queue_free()
pass pass
func _on_attack_area_3d_body_entered(body: Node3D) -> void:
if body == self:
return
print("body entered")
if body.is_moving:
self.queue_free()
if is_moving:
body.queue_free()
pass # Replace with function body.

View file

@ -2,5 +2,27 @@
[ext_resource type="Script" uid="uid://c11aaiot3b336" path="res://Scene/Pieces/piece.gd" id="1_y1oan"] [ext_resource type="Script" uid="uid://c11aaiot3b336" path="res://Scene/Pieces/piece.gd" id="1_y1oan"]
[node name="Piece" type="Node3D" unique_id=410020425] [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_y1oan"]
[sub_resource type="BoxShape3D" id="BoxShape3D_y1oan"]
size = Vector3(1, 1, 0.23034668)
[node name="Piece" type="CharacterBody3D" unique_id=537334881]
input_ray_pickable = false
script = ExtResource("1_y1oan") script = ExtResource("1_y1oan")
team = null
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=1993537939]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
shape = SubResource("CapsuleShape3D_y1oan")
[node name="AttackArea3D" type="Area3D" parent="." unique_id=1127558984]
collision_layer = 0
input_ray_pickable = false
[node name="CollisionShape3D" type="CollisionShape3D" parent="AttackArea3D" unique_id=2114634494]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.2023885, -0.5136469)
shape = SubResource("BoxShape3D_y1oan")
debug_color = Color(0.8610924, 0.33499888, 0.36550382, 0.41960785)
[connection signal="body_entered" from="AttackArea3D" to="." method="_on_attack_area_3d_body_entered"]

View file

@ -1,12 +0,0 @@
[gd_scene format=3 uid="uid://b5o0e01wkibu7"]
[ext_resource type="Script" uid="uid://c11aaiot3b336" path="res://Scene/Pieces/piece.gd" id="1_gmwly"]
[ext_resource type="Material" uid="uid://bxg7bjgiqfnru" path="res://Materials/piece_black.tres" id="2_uipd2"]
[ext_resource type="ArrayMesh" uid="uid://cbr1tmaelnbwv" path="res://Models/queen.obj" id="3_18v2x"]
[node name="Queen" type="Node3D" unique_id=1009873024]
script = ExtResource("1_gmwly")
color = ExtResource("2_uipd2")
[node name="mesh" type="MeshInstance3D" parent="." unique_id=1534534969]
mesh = ExtResource("3_18v2x")

View file

@ -1,12 +0,0 @@
[gd_scene format=3 uid="uid://dxh3jmv61jfp0"]
[ext_resource type="Script" uid="uid://c11aaiot3b336" path="res://Scene/Pieces/piece.gd" id="1_4uxm1"]
[ext_resource type="Material" uid="uid://bxg7bjgiqfnru" path="res://Materials/piece_black.tres" id="2_kqueb"]
[ext_resource type="ArrayMesh" uid="uid://bpi163efm64p2" path="res://Models/rook.obj" id="3_bs0i1"]
[node name="Rook" type="Node3D" unique_id=699678101]
script = ExtResource("1_4uxm1")
color = ExtResource("2_kqueb")
[node name="mesh" type="MeshInstance3D" parent="." unique_id=2043445377]
mesh = ExtResource("3_bs0i1")

View file

@ -14,9 +14,10 @@ var possible_positions : Array[Vector2i] = []
func _ready() -> void: func _ready() -> void:
#$SuperPawn2.move_to(Vector2(8,8)) #$SuperPawn2.move_to(Vector2(8,8))
#$SuperPawn.move_to(Vector2(0,0)) #$SuperPawn.move_to(Vector2(0,0))
for child in get_node("Board").get_children(): for tile in get_node("Board").get_children():
child.is_clicked.connect(movement) tile.is_clicked.connect(movement)
pass # Replace with function body. pass # Replace with function body.
func movement(coord:Vector2i): func movement(coord:Vector2i):
if selected_piece: if selected_piece:
if coord in possible_positions: if coord in possible_positions:

View file

@ -1,13 +1,17 @@
[gd_scene format=3 uid="uid://e7hyi2t7bejn"] [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="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="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="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="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="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="PackedScene" uid="uid://ci6k70kme7egj" path="res://Scene/Pieces/piece.tscn" id="7_sagxc"]
[ext_resource type="Resource" uid="uid://dpec03625gclm" path="res://Resources/Pieces/queen.tres" id="8_8f6ah"]
[ext_resource type="Resource" uid="uid://cso00cln3awgu" path="res://Resources/Pieces/rook.tres" id="8_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="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"] [ext_resource type="Resource" uid="uid://ekgey785opq5" path="res://Resources/Pieces/king.tres" id="10_twwsd"]
@ -34,6 +38,15 @@ fog_sun_scatter = 0.3
fog_aerial_perspective = 0.113 fog_aerial_perspective = 0.113
adjustment_enabled = true 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] [node name="Game" type="Node3D" unique_id=1842930265]
script = ExtResource("1_8f6ah") script = ExtResource("1_8f6ah")
@ -58,39 +71,53 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 26.254642, 0)
[node name="Queen" parent="Pieces" unique_id=410020425 groups=["Pieces", "PlayerPieces"] instance=ExtResource("7_sagxc")] [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) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, 4)
piece_res = ExtResource("8_8f6ah") piece_res = SubResource("Resource_yjs1f")
team = "us"
[node name="Pawn5" parent="Pieces" unique_id=214368826 groups=["Pieces", "PlayerPieces"] instance=ExtResource("7_sagxc")] [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) transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 6, 0, 2)
piece_res = ExtResource("5_sagxc") piece_res = ExtResource("5_sagxc")
team = "us"
[node name="Pawn6" parent="Pieces" unique_id=353236800 groups=["Pieces", "PlayerPieces"] instance=ExtResource("7_sagxc")] [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) transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 4, 0, 2)
piece_res = ExtResource("5_sagxc") piece_res = ExtResource("5_sagxc")
team = "us"
[node name="Pawn7" parent="Pieces" unique_id=667979117 groups=["Pieces", "PlayerPieces"] instance=ExtResource("7_sagxc")] [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) transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 2, 0, 2)
piece_res = ExtResource("5_sagxc") piece_res = ExtResource("5_sagxc")
team = "us"
[node name="Pawn8" parent="Pieces" unique_id=279147143 groups=["Pieces", "PlayerPieces"] instance=ExtResource("7_sagxc")] [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) transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 0, 0, 8)
piece_res = ExtResource("5_sagxc") piece_res = ExtResource("5_sagxc")
team = "us"
[node name="Knight" parent="Pieces" unique_id=828740381 groups=["Enemy", "Pieces"] instance=ExtResource("7_sagxc")] [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) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 10)
piece_res = ExtResource("6_h8jt7") piece_res = ExtResource("6_h8jt7")
team = "them"
[node name="Knight2" parent="Pieces" unique_id=905424274 groups=["Enemy", "Pieces"] instance=ExtResource("7_sagxc")] [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) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12, 0, 8)
piece_res = ExtResource("6_h8jt7") 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")] [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) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0, 8)
piece_res = ExtResource("8_sagxc") piece_res = ExtResource("8_sagxc")
team = "them"
[node name="Bishop" parent="Pieces" unique_id=839312457 groups=["Pieces", "PlayerPieces"] instance=ExtResource("7_sagxc")] [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) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 8)
piece_res = ExtResource("7_h8jt7") piece_res = ExtResource("7_h8jt7")
team = "them"
[node name="King" type="Node3D" parent="Pieces" unique_id=345844088 groups=["Pieces", "PlayerPieces"]] [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) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 0, 2)