aboutsummaryrefslogtreecommitdiff
path: root/client/scripts/tiles/full_tile.gd
diff options
context:
space:
mode:
authornokoe <nokoe@mailbox.org>2024-06-21 00:47:57 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-23 19:25:29 +0200
commitb430895ea49ebeb0359a2d36164832303aaf757d (patch)
tree651c4e1e0a9e22207607eba0c15da6c02374ead6 /client/scripts/tiles/full_tile.gd
parent4f19a2cd91b099dc2e0d6c673d853befc7044340 (diff)
downloadhurrycurry-b430895ea49ebeb0359a2d36164832303aaf757d.tar
hurrycurry-b430895ea49ebeb0359a2d36164832303aaf757d.tar.bz2
hurrycurry-b430895ea49ebeb0359a2d36164832303aaf757d.tar.zst
add door
Diffstat (limited to 'client/scripts/tiles/full_tile.gd')
-rw-r--r--client/scripts/tiles/full_tile.gd15
1 files changed, 15 insertions, 0 deletions
diff --git a/client/scripts/tiles/full_tile.gd b/client/scripts/tiles/full_tile.gd
new file mode 100644
index 00000000..a986b053
--- /dev/null
+++ b/client/scripts/tiles/full_tile.gd
@@ -0,0 +1,15 @@
+class_name FullTile
+extends Floor
+
+var static_body = StaticBody3D.new()
+
+func setup(rename: String, neighbors: Array):
+ super.setup(rename, neighbors)
+ var shape = CollisionShape3D.new()
+ var box = BoxShape3D.new()
+ shape.position.y += .5
+ shape.shape = box
+ shape.name = "Box"
+ static_body.add_child(shape)
+ static_body.name = "Body"
+ base.add_child(static_body)