blob: 435ab11d3ce9f8be87ff5cdd056569f944c80063 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
[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" groups=[
"piece",
]]
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"]
|