Godot maze game project

Godot Version

latest 4.5.1

Question

Im creating a maze game which is similar in idea to the binding of isaac (room based maze navigation) but im running into issues with the procedural generation and door alignment. Im a beginner at this so I dont really know much about what to fix but Im pretty sure theres something wrong with the section responsible for creating rooms.

If your able to help me send me a dm on discord (djkalt) and ill provide more details :folded_hands:

Why not provide more details here?

this is the mediafire link for the project personal_project_maze_2025-12-16_16-43-24 the game is basically 4 rooms, 3 โ€˜normalโ€™ which have 2-3 doors and one dead end that has 1 door, rooms are squares (there might be some things i miss while summarizing the game tho). The main issue I have is that when the rooms are spawned, the doors lead to outside the map so the player can fall and like theres no clear pathway to the exit. I dont really understand much about it so Im trying to get someone to help me fix it.

Thanks for your time