Skip to main content
Version: 3.4

Choose First Room

This function defines the root of the dungeon generation, not the first room where the player starts.
You must pass a valid RoomData, or the generator will throw an error.

tip

You can use whatever room that makes sense in your project.
For example, my dungeon example project uses the spawn room of the player as first room.
However, if for example you want multiple spawn rooms for different player teams, you can use another room, like an end/boss room as first room to generate.

Here an example where we always set the same room as the first room dungeon: