Tilebased dungeon generator.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By The Glitch

I am making a rogue-like with tile based dungeon generation, but i just don’t know how to do this. Any help?

Perhaps take a look at the gdquest course: Coding the basic dungeon generator - GDQuest

spaceyjase | 2023-04-20 15:56

Sorry, i forgot to clarify that i wanted a premade tile approach.

The Glitch | 2023-04-20 18:23

This is a really vague question. If you hope, that someone write you a system for this, this will not happen.

If you want to hear some Ideas, how to approach it:

  • Create Scenes with your different DungonTiles
  • Mark “Connection Points”
  • attach a script to the tiles, which spawns random dungeontiles at the connection points / room doors.
  • create your own SpawnRandomRoom - function to controll the “randomness” and adjust things like, when a bossroom should spawn e.g.
  • maybe use a collsionshape to check, if the room, which should be spawned, does not overlap with other rooms if so → spawn narrow room or a hallway.

ChrissWalters | 2023-04-20 19:13