I recently started learning python and I'm working on a dungeon generator, using images for the rooms, hallways and junctions. Example of desired result.
So far I managed to generate a X * Y map and avoid the rooms from escaping the background image or colliding with each other (collision test); I was going to work on pathfinding to generate the corridors but ran into a problem. As you can see in the first image, some corridors and junctions are 1-tile wide while others are 2, and potentially wider.
Ideally I would use the generated grid to see where the corridors would go and "paste" whichever corridor or junction image would fit in that space.
Any tips on how to incorporate that into the pathfinding algorithm?, or if you have a better idea to generate the corridors, I'm all ears. Perhaps generating a single room, growing a corridor from there and adding a room at the end of that corridor, rinse and repeat?