I want to create a Roblox Doors FanGame, but I'm having problems with how I can create a more efficient room generation.
Firstly, I thought about creating a generation of rooms that use tilemaps (for optimization reasons and better handling when creating rooms), and then I should clone these tilemaps objects and create the room design in them and save them in another layout.
When a room is generated, a door is created along with it, and when we open the door, the next room is generated, and the rooms that are generated may or may not contain drawers, and these drawers may contain items or coins, or may not contain anything.
Obviously the rooms that are generated NEED to be connected to each other for a better design, here I have images of my logic.