Dungeon Generator

Hey JGO,

I decided to make a really Dungeon generation thing that I think is about ready to share. Note that this is still a work-in-progress so it still looks a little bland.

How it Works:
First the system makes an array of rooms.( Rooms hold the blocks to be rendered) Then makes one single room in the middle of the map. That room (depending on the amount of exits it has) will make a more rooms which in turn will make more rooms. The random part comes from how rooms generate. When a room is generated, it finds what type of room it is (Top,Bottom,Left,Right or all of the above)then goes into the folder of the same name and picks a random map file out of that folder. That is it in a very shortened and confusing explanation.

FAQ:
Q:Do out-of-camera blocks still render?
-A: No

Q:What is that blue thing in the middle of the screen?
-A: makeshift player

Q:Will you make this into an actual playable game?
-A: Maybe

Q: How long does it take to generate a 10x10 map?
-A: way too long. The system needs much more optimization.

Q: Where did you get the algorithm from?
-A. My head. I did do research on some different ways of doing this but I wanted an algorithm that lets me quickly change what is generated in the map without change much, or any, code. So I decided on this one.

Version 1 (older)
+Initial release
Download: R1.0

Version 2 (newest)

  • more appealing block graphics
  • added “Full map View” which is activated by pressing “F1”
  • More rooms :slight_smile:
    Download: R2.0 Here

Instructions (Latest Update):
WSAD: Movement (Isometric may need to get used to it)
Left Shift: Sprint
Space: Generate new Dungeon
F1:See Full map (WARNING much lag, many slows)
Screenshots:

What a room file looks like:

Looks quite nice.
What are you planning to do with this?

I might make a game out of it or i might just improve the generation. I’m not quite sure ye since I’ve only been working on this for about three days

perhaps you could make it so if one room is joining another room it will knock out the whole wall between them, then you will end up with some various sized and shaped rooms?

That’s a pretty good idea. I might do that

This is really neat, I would like to see the logic or approach you took in pseudo code. Great job.

I decided to release a little demo basically showing what a game might look like inside of a dungeon. It is no where near a game yet, but this is what it might look like.

Downloads Above :point:

It runs at 60 fps at most times but there are random lag spikes which I need to fix, but other than that, have at it.

Instructions:
WSAD: Movement (Isometric may need to get used to it)
Left Shift: Sprint
Space: Generate new Dungeon

PS:collision and player:block draw order is not added yet
PSS: The loading bar will probably never get to 100%, this is semi intentional as it allows for more unique dungeons (but also makes them kind-of unpredictable)

i found this a few weeks ago which looked interesting http://dungeonmaker.sourceforge.net/DM2_Manual/index.html it might give you some more ideas or leads.

Download Here

Does not work for me:

"Error (403)
It seems you don’t belong here! You should probably sign in. Check out our Help Center and forums for help, or head back to home. "

Okay, I have updated the original posts withe new Download links

Here they are:
Download Here or Here

New update:

  • more appealing block graphics
  • added “Full map View” which is activated by pressing “F1”
  • More rooms :slight_smile:

Download Version 2.0 Here

Super slow when viewing large map and I do not have a crap computer. Fixed function?

Try displaylists/vbo/some form of batching. Heck rendering it to a texture then rendering that texture may work