Simple Dungeon Generator (part 1)
For my MiniLD entry, I’ve been working on a simple dungeon generator. Taking a look at the screenshot, you’ll notice the grid. There’s nothing random about that grid, but since the game takes place in a sewer (usually something that is plotted out carefully), it was a nice way to make sure 99.9% of the rooms connect without extra work. The rooms are generated by a simple algorithm found on my GitHub account. Why the random rooms in an orderly sewer? Mysterious bugs have chewed through some of the piping to create nests for their young. I still have a few tweaks to make but everything should be rendering with the correct sprite sheet by the end of the day.
Comments
Sogomn
17. Jul 2015 · 23:35 UTC
You’re creating a new Random-object every loop! That’s totally inefficient!
