Skip to main content

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

Procedurally Generating Rooms

Got some procedurally generated rooms kind of working. It's a little early on in the project, but at least it means I'll have something to salvage if I decide to abandon it.


It starts with a starting room, and then creates 4 walkers at that position that will then move in random directions, and creates a room at their new position. Every time it moves, it also has a chance to delete itself, so that not every corridor will be the same length. Then, for every room, I check if there is another room in all four directions, and create a doorway in that direction if there is. It could use a lot of work, but it does the job for now, i guess.