diff options
| author | nokoe <nokoe@mailbox.org> | 2024-06-21 00:47:57 +0200 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2024-06-23 19:25:29 +0200 |
| commit | b430895ea49ebeb0359a2d36164832303aaf757d (patch) | |
| tree | 651c4e1e0a9e22207607eba0c15da6c02374ead6 /client/scripts/map/floor.gd | |
| parent | 4f19a2cd91b099dc2e0d6c673d853befc7044340 (diff) | |
| download | hurrycurry-b430895ea49ebeb0359a2d36164832303aaf757d.tar hurrycurry-b430895ea49ebeb0359a2d36164832303aaf757d.tar.bz2 hurrycurry-b430895ea49ebeb0359a2d36164832303aaf757d.tar.zst | |
add door
Diffstat (limited to 'client/scripts/map/floor.gd')
| -rw-r--r-- | client/scripts/map/floor.gd | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/client/scripts/map/floor.gd b/client/scripts/map/floor.gd deleted file mode 100644 index a8a396c4..00000000 --- a/client/scripts/map/floor.gd +++ /dev/null @@ -1,25 +0,0 @@ -class_name Floor -extends Node3D - -var base = Node3D.new() - -enum Facing { - NEG_Y = 0, - NEG_X = 1, - Y = 2, - X = 3, -} - -func setup(rename: String, _neighbors: Array): - add_child(load("res://models/prefabs/map/floor_kitchen_small.tscn").instantiate()) - base.name = "Base" - add_child(base) - self.name = rename - -func turn_facing(facing: Facing): - base.rotate_y(facing * 0.5 * PI + PI) - -func tile_name(idx): - if idx == null: - return null - return Multiplayer.tile_names[idx] |