Hi. I'm making a procedural dungeon game and I have tiles for every part of the wall.
Problem is, it looks like this:
I've tried something like (excuse pseudocode)
For Each Tile > Check Tile X+1 > If that is not same as X, check tile Y+1 > if Y+1 is not a tile, do not change anything (this is so it won't change horizontal walls) > If Y+1 is a tile, set tile XY to Z.
Help appreciated! Thanks.