diff options
Diffstat (limited to 'client/scripts/map/wall_tile.gd')
-rw-r--r-- | client/scripts/map/wall_tile.gd | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/client/scripts/map/wall_tile.gd b/client/scripts/map/wall_tile.gd new file mode 100644 index 00000000..d107d73e --- /dev/null +++ b/client/scripts/map/wall_tile.gd @@ -0,0 +1,10 @@ +class_name WallTile +extends FullTile + +func setup(rename: String, neighbors: Array): + super.setup(rename, neighbors) + var facing = 0 + for i in range(4): + if neighbors[i] != null&&tile_name(neighbors[i]) != "wall": + facing = i + turn_facing(facing) |