chess-game/Scene/Pieces/piece.tscn
francis 026d634c3a pieces can rotate while moving
whe can color pieces dynamically

pieces have collider and can kill each other
2026-03-06 22:46:34 +01:00

28 lines
1.1 KiB
Text
Executable file

[gd_scene format=3 uid="uid://ci6k70kme7egj"]
[ext_resource type="Script" uid="uid://c11aaiot3b336" path="res://Scene/Pieces/piece.gd" id="1_y1oan"]
[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")
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"]