summaryrefslogtreecommitdiff
path: root/map/objects/door.tscn
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2025-03-10 18:22:09 +0100
committerDaniel Weipert <git@mail.dweipert.de>2025-03-10 18:22:09 +0100
commit440020e642f539079867577435a9f8b02075699b (patch)
tree99acccfc1574a8ffc656d6f64ff934949edb1f52 /map/objects/door.tscn
initial commitHEADmain
Diffstat (limited to 'map/objects/door.tscn')
-rw-r--r--map/objects/door.tscn25
1 files changed, 25 insertions, 0 deletions
diff --git a/map/objects/door.tscn b/map/objects/door.tscn
new file mode 100644
index 0000000..dba01a0
--- /dev/null
+++ b/map/objects/door.tscn
@@ -0,0 +1,25 @@
+[gd_scene load_steps=5 format=3 uid="uid://bw2qihhy14bxr"]
+
+[ext_resource type="Script" uid="uid://0xkcx8qk47gx" path="res://map/objects/door.gd" id="1_84465"]
+[ext_resource type="Texture2D" uid="uid://dv8lud5b0tu3h" path="res://map/assets/tileset.png" id="1_i1plv"]
+
+[sub_resource type="AtlasTexture" id="AtlasTexture_84465"]
+atlas = ExtResource("1_i1plv")
+region = Rect2(16, 64, 16, 16)
+
+[sub_resource type="RectangleShape2D" id="RectangleShape2D_84465"]
+size = Vector2(10, 8)
+
+[node name="Door" type="Area2D"]
+script = ExtResource("1_84465")
+
+[node name="Sprite2D" type="Sprite2D" parent="."]
+texture = SubResource("AtlasTexture_84465")
+centered = false
+offset = Vector2(-8, -8)
+
+[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
+position = Vector2(0, -1)
+shape = SubResource("RectangleShape2D_84465")
+
+[connection signal="body_entered" from="." to="." method="_on_body_entered"]