Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics

Well, I can point you to a good example of dungeon generation: Pixel Dungeon. Here is the code, you want to look at:

*it's in java

Can't recommend anything else, try to search a bit about BSP dungeon generation. That's one of the methods, that I use.


thanks I’ll check it out - I was curious because most examples online use hall ways to connect rooms, but yours generates each room side by side making it feel more like a building than a some sort of cave system - it’s a really neat effect. Thanks again for the link 

Well, the trick that pixel dungeon uses, is that it generates just room. Then it selects room in some path, that is in a circle form. And then it paints each one. But some of the rooms are painted like tunnels, so it doesn't need to implement pathfinding and stuff. I really love this idea.


ah I think I understand it a bit better now - thanks for the help. And totally this is a great idea, would love to see it expanded further 

Currently working on a game with this generator ;) 

(1 edit) (+1)

Dude that looks great, is gonna be a rogue-like? Still really impressed with this by the way, I've spent a good chunk of my day trying to just recreate your system - Managed to get rooms to spawn up and left, or down and right, but not a mix of the two, gonna keep working on it.

You must be magic or something - looking at this something just clicked and now I got the fundamentals working, thanks again for all the links you sent me much appreciated