Now About Social Code
summaryrefslogtreecommitdiff
path: root/prefabs/exit.tscn
diff options
context:
space:
mode:
authorLucas Fryzek <lucas.fryzek@fryzekconcepts.com>2024-09-26 15:35:44 +0100
committerLucas Fryzek <lucas.fryzek@fryzekconcepts.com>2024-09-26 15:35:44 +0100
commitd29a892d287b52beb48c331c0da7bc59ac3db237 (patch)
tree2b06b4346c678cc17e2e7c86366bdc5d819ce2a7 /prefabs/exit.tscn
parent8ff2487734df59855bbfd988d88b3b32273049e2 (diff)
dungeon_manager: Add level exit, and load new level
Diffstat (limited to 'prefabs/exit.tscn')
-rw-r--r--prefabs/exit.tscn22
1 files changed, 22 insertions, 0 deletions
diff --git a/prefabs/exit.tscn b/prefabs/exit.tscn
new file mode 100644
index 0000000..c6da7d7
--- /dev/null
+++ b/prefabs/exit.tscn
@@ -0,0 +1,22 @@
+[gd_scene load_steps=4 format=3 uid="uid://bby6nvx5y03x"]
+
+[sub_resource type="BoxMesh" id="BoxMesh_80n3v"]
+size = Vector3(1, 0.1, 1)
+
+[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_yj1cw"]
+albedo_color = Color(0, 0, 0.988235, 1)
+
+[sub_resource type="BoxShape3D" id="BoxShape3D_5ln3u"]
+
+[node name="Exit" type="Area3D"]
+collision_layer = 4
+collision_mask = 4
+
+[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.05, 0)
+mesh = SubResource("BoxMesh_80n3v")
+surface_material_override/0 = SubResource("StandardMaterial3D_yj1cw")
+
+[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
+shape = SubResource("BoxShape3D_5ln3u")