As the title suggests, I finally managed to add wide corridors in the world generator for my Unity 3D game prototype. Instead of spending a huge amount of time in tweaking and debugging the A* star algorithm that creates the corridors, I now just call it multiple times per door to door connection and encourage it to lay the paths side by side by adjusting the weights in the grid. It leaves some artifacts sometimes but these are easily removed by passing a few times over the tilemap and removing all wall tiles that are surrounded by 3 or more corridor tiles (excluding diagonals). Almost like Conway’s Game of Life.


