summaryrefslogtreecommitdiffstats
path: root/door.tscn
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-11-19 18:34:26 +0200
committerJan Tuomi <jan@jantuomi.fi>2025-11-19 18:34:46 +0200
commitd61ad72495dd1514ad1833a31df3f63208160fe6 (patch)
treeb29424b6e31ab8bd6e995ded42ed3a722677f64f /door.tscn
parent64ef25975e570a574e2d8889a7f290032acde740 (diff)
Add room transitions
Diffstat (limited to 'door.tscn')
-rw-r--r--door.tscn17
1 files changed, 17 insertions, 0 deletions
diff --git a/door.tscn b/door.tscn
new file mode 100644
index 0000000..8b1c662
--- /dev/null
+++ b/door.tscn
@@ -0,0 +1,17 @@
+[gd_scene load_steps=3 format=3 uid="uid://df0loiahar23o"]
+
+[ext_resource type="Script" uid="uid://cmnco4i405eeh" path="res://door.gd" id="1_ba8gm"]
+
+[sub_resource type="RectangleShape2D" id="RectangleShape2D_vjuef"]
+size = Vector2(16, 16)
+
+[node name="Door" type="Area2D"]
+collision_layer = 4
+collision_mask = 2
+input_pickable = false
+script = ExtResource("1_ba8gm")
+
+[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
+shape = SubResource("RectangleShape2D_vjuef")
+
+[connection signal="body_entered" from="." to="." method="_on_body_entered"]