chessgame/Piece.tscn

27 lines
698 B
Text
Raw Permalink Normal View History

2023-02-17 11:37:23 -08:00
[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]
2023-02-18 13:41:27 -08:00
[node name="Piece" type="Sprite" groups=[
"piece",
]]
2023-02-17 11:37:23 -08:00
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"]