So i’ve been trying to make a random room generator, but im stuck on aligning the doors and exits, im trying to get it working first before i start making the full randomizer, the doors positions end up correct but the orientation isn’t and im not sure why, i looked around the devforum and looked it up quite a bit but i couldnt find a solution.
This is the code:
and here is the output i get:
(the starter room is the one with only one, green line)