25 lines
678 B
Text
25 lines
678 B
Text
|
[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"]
|