Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

It's a little brute force. I'll try to explain:

  1. Create a randomly sized square
  2. Pick a random wall tile
  3. Create another randomly sized square in the space next to the picked wall.
  4. Repeat this process until a number of rooms are made that don't overlap.
  5. Fill in each square room with different things. Some rooms become "hallway rooms", some are filled with random pillars, some have their centers filled in.
  6. To make the sand exterior I took each rooms center and created a circle with a larger radius.

The way the algorithm works is kinda like how you would draw a map in MS paint or something.

Ooohh, ok, makes sense.
Thank you for explaining.
Good luck with your games.