summaryrefslogtreecommitdiff
path: root/MoveTile.tscn
diff options
context:
space:
mode:
Diffstat (limited to 'MoveTile.tscn')
-rw-r--r--MoveTile.tscn30
1 files changed, 30 insertions, 0 deletions
diff --git a/MoveTile.tscn b/MoveTile.tscn
new file mode 100644
index 0000000..b376cd0
--- /dev/null
+++ b/MoveTile.tscn
@@ -0,0 +1,30 @@
+[gd_scene load_steps=3 format=2]
+
+[ext_resource path="res://MoveTile.gd" type="Script" id=1]
+
+[sub_resource type="RectangleShape2D" id=1]
+
+[node name="MoveTile" type="Node2D" groups=[
+"tile",
+]]
+script = ExtResource( 1 )
+
+[node name="Rect" type="ColorRect" parent="."]
+margin_left = -64.0
+margin_top = -64.0
+margin_right = 64.0
+margin_bottom = 64.0
+mouse_filter = 2
+color = Color( 0.301961, 0.717647, 0.964706, 0.54902 )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="Area2D" type="Area2D" parent="Rect"]
+position = Vector2( 64, 64 )
+scale = Vector2( 6.4, 6.4 )
+
+[node name="CollisionShape2D" type="CollisionShape2D" parent="Rect/Area2D"]
+shape = SubResource( 1 )
+
+[connection signal="input_event" from="Rect/Area2D" to="." method="_on_Area2D_input_event"]