First things first. If you're like me you want to see the end result so you know you're not wasting your time.
Example Video Here
The map that will be generated by default is a 4 x 4 grid, I call this the level. A room is what makes up each one of the level tiles. A room is 20 x 15.
There are 16 different paths a room can have
- no path
- straight line openings on left and right
- T shape with openings on left, right, and bottom
- upside down T with openings on left, right, and top
- crose with openings on all sides
- vertical line with openings on top and bottom
- right angle with openings on right and bottom
- right angle with openings on left and bottom
- right angle with openings on right and top
- right angle with openings on left and top
- T turned 90 degrees with openings on top, bottom, and right
- like 10 but flipped with openings on top, bottom, and left
- one opening on right
- one opening on top
- one opening on left
- one opening on bottom
Each level tile has its own rule for which type of path can be generated for the room which lives in that tile. This is so you dont have paths going off level.