diff options
| author | nokoe <nokoe@mailbox.org> | 2024-06-20 14:13:28 +0200 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2024-06-23 19:24:14 +0200 |
| commit | 80039e0e7eb142d51f882a39981fd415ea3f5c54 (patch) | |
| tree | 62d75807ff55374bdb5431dd5db82399d241c4c7 /client/scripts/map/chair.gd | |
| parent | 5bf50cd276a568f55fb1d5aedef96e614bed015b (diff) | |
| download | hurrycurry-80039e0e7eb142d51f882a39981fd415ea3f5c54.tar hurrycurry-80039e0e7eb142d51f882a39981fd415ea3f5c54.tar.bz2 hurrycurry-80039e0e7eb142d51f882a39981fd415ea3f5c54.tar.zst | |
map generation
Diffstat (limited to 'client/scripts/map/chair.gd')
| -rw-r--r-- | client/scripts/map/chair.gd | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/client/scripts/map/chair.gd b/client/scripts/map/chair.gd new file mode 100644 index 00000000..e51d7864 --- /dev/null +++ b/client/scripts/map/chair.gd @@ -0,0 +1,13 @@ +class_name Chair +extends Floor + +func setup(rename: String, neighbors: Array): + super.setup(rename, neighbors) + var chair = load("res://models/prefabs/map/chair_A.tscn").instantiate() + var facing = 0; + for i in range(4): + if tile_name(neighbors[i]) == "table": + facing = i + break + base.add_child(chair) + turn_facing(facing) |