Procedural Dungeon Generator

GitHub repository

Using GameMaker, I created a procedural dungeon generator with rooms connected by corridors. The rules on how rooms and corridors are formed are:

  • The width and height of each room are between a minimum and maximum value
  • Each room after the first one created connect to a previous room from a random cardinal direction with a hallway with a length and width between a min and max value
  • Rooms and corridors cannot leave the bounds of the game room
  • Each room cannot touch nor overlap any other room
  • Corridors cannot touch a room that is not the two connecting rooms

This project’s GameMaker version is 2024.13.1

Leave a comment