Fellow programmers, artists and Unity Users alike
I am currently working on a 2D Bullet Hell Dungeon Crawler, very similar to games like Enter The Gungeon. I want procedurally generated dungeons, which create rooms and loops and connects them together will hallways.
You can find an example of a generated Dungeon in the Attached Files :)!
As you can see, in the Image, the Dungeon is nearly fully generated, but misses one last loop between the start and end rooms (as indicated by the Green Line). This path between the rooms is created with an A* Pathfinding algorithm, that finds the shortest path from A to B. As you can see, this path creates a lot of small Zig-Zags.
The hallways are 2 Tiles wide and cannot bend in the ways that the Pathfinding Algorithm finds it’s route. What I need is a connection between point A and B, with the least amount of bends possible (see Attached Files, Image 2).
I have experimented around with getting the X and Y Length of the path and figuring out how to bend that way, but I don’t seem to get a system that takes the already generated path into account.
I have no clue how to approach fixing this problem. Does anyone have an idea on how these kinds of Hallways could be achieved?
Thanks in advance!