diff options
Diffstat (limited to 'Piece.tscn')
-rw-r--r-- | Piece.tscn | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Piece.tscn b/Piece.tscn new file mode 100644 index 0000000..8361904 --- /dev/null +++ b/Piece.tscn @@ -0,0 +1,24 @@ +[gd_scene load_steps=5 format=2] + +[ext_resource path="res://chess.png" type="Texture" id=1] +[ext_resource path="res://Sprite.gd" type="Script" id=2] + +[sub_resource type="AtlasTexture" id=1] +resource_local_to_scene = true +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 0, 0, 128, 128 ) + +[sub_resource type="RectangleShape2D" id=2] + +[node name="Piece" type="Sprite"] +texture = SubResource( 1 ) +script = ExtResource( 2 ) + +[node name="Area2D" type="Area2D" parent="."] + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"] +scale = Vector2( 4, 4 ) +shape = SubResource( 2 ) + +[connection signal="input_event" from="Area2D" to="." method="_on_Area2D_input_event"] |