I made a Maze / Level / Dungeon Generator!

Hey all,

Last night i thought… i’ll see if i can make a maze generator in less than an hour. 8 bleary eyed hours later… It’s my first program with lots of If’s and some arrays! :smile:

Here is a Demo Project for you to play on, please make suggestions. thankyou.
http://dl.dropbox.com/u/114667999/WebPlayer.html- added a map mutate option, button 7, when you have finished making a map,press button 0 to add a roof, button 8 to bake the map, and button 7 to mutate it.:slight_smile:

it can make 3d dungeons onmulti-story 2-3 -n levels and 2d dungeons.
it takes10 seconds to generate a 100-space maze for the pre-alpha version.
totally randomly burrowing tunneller that makes walls
tuneller can be configured to many 2D/3D dungeon morphologies, long tunnels and giant and small rooms, more or less square or random rooms, and all morphologies can be in 3D also, like long tunnels and rooms in 3d for a spacecraft for example.
can apply a some noise algorythms to warp some of the tunnel walls so that it makes kindof chaotic angles in certain places of it.
can be used as a real time level designer, just press arrow keys to override the random and walk the tunneller left right etc, and i could also set controls to decide tuneller width and height, for example you can grow it to 20 meters to make big rooms etc.
automate texture patterns, keep tunnel data as arrays to spawn anywere in it and to instantiate the tunnel without having it as .OBJ, and can also save as .OBJ

:smile:

really im interested because im making a JRPG and this dungeon generator could help speed up production

Looks great !
Could you make it with roof ?

It has a roof! i just took off the top panels to see inside. :I should be using 2d planes that are see through from the outside although i didnt do that!

Hi Cynel, Thanks for the encouragement! at the moment it only has the first 2 lines from the feature list above,I want to make an asset store version with all the features, as i have to save to buy a hot water thingy for my flat (cold!) mail me privately if u want ;]

I’d love some suggestions of features to add to it, i.e. automatically put stairs wood&metal elevators, ladders, ropes prefabs on the up/down parts, ways to make the walls more real, how do i do the texture handling.

I just edited the code to have functions and it render 1000 space dungeons in under a minute :slight_smile:

good i wanted to make Zelda style dungeons

OoO That last pic (two posts above this one) reminds me of Solstice…

Now that I’ve said that, while it’s a cool little thing, it’d be nice to see custom objects thrown in for things like walls. Just create an array that contains all the different tiling wall parts, and limit it to use those wall pieces for each “room”. Random objects inside the rooms would be cool too.

I’ve been working on a 2d movement system, and may be making my own random generator for it, similar to this. The idea is to effectively make something like metroid, but make it a randomly generated world. I’m a ways off from working on it, but still, it gives inspiration to see this. After a bit more work, you could easily sell this on the asset store.

Thanks for the idea about different tiles for different rooms sounds like the best use of time for new features:)

i made it so you can make maps and tunnels with the cursor keys so you could even write your name in the map, in fact i just did a map with one end that said UNITY :smile:, and also you can resize tunnels to any size and you can change between random and cursor mode to do mixed mode maps. Still have to do texture management and options to add stairs and rope bridges across rooms etc.

This looks great. Thinking it could be fantastic if you want to do a game in the style of Diablo.

I know what you mean! i would like to do a diablo. ya that video with teh green tiles was abit lame sry about that! it started off with quake textures.
here is an interactive demo, same one as in top post.
http://dl.dropbox.com/u/114667999/WebPlayer.html

maximum maze space is 50 000 meters, press B after you have made teh maze to combine mesh and go into fps view.

Looks interesting and it’s definitely a different take on the standard maze generator. I think a more common method of maze generation is generate rooms and then create connecting tunnels.

Good luck. Looking forward to a finished product.

I like how this is progressing. Nice work.

  • Matt.

i like that too , but is it always accurate ?
BTW , can you change the RMB :smile: , whenever i press it , the Unity player menu appears :blush:

Thanks Brian, I made the maps more human made and also added button 7-mutate the shape of the map into the Betelgeuse world!:slight_smile: press button 0,8 then 7.

Thanks Matt!!! it’s difficult to keep hopes up sometimes with these kinds of programs! there’s an option for variety in the maps-being able to stand in the middle of any room and say randomise room features, and it would automatically make pillars, archways, beams, polygon room claddings of metal and stone etc all in different orders every time the button is pressed, and then also randomise furniture, monsters, room by room it would be pretty fun and fast to make maps! ideally with rows of things in the corridors and lines of wallpaper!

Thanks. yes it is. luckily it’s all right angles, although it would be more difficult if I want to make an option after to make some of the rooms round.

how much will this cost on the asset store?

Hi Cynel.

Good Question! I think i should make 2 versions on the asset store, because i can upload an easy version today and version 2 is proving quite confusing for me.

version 1 will be the same kind of price as the other maze generators, 10-15 usd, although you can walk around the rooms and click walls to change textures and click tiles to add a prefab, lighting, etc, on the closest zone.

I’ll try and get version 1 ready this week and will send it to the asset people some time in the weekend, because the other version has got so many options it’s rather challenging. Thanks for the question!