psykopath on DeviantArthttp://creativecommons.org/licenses/by-nc/3.0/https://www.deviantart.com/psykopath/art/Random-Dungeon-Generator-v2-92424211psykopath

Deviation Actions

psykopath's avatar

Random Dungeon Generator v2

By
Published:
4.3K Views

Description

[edit]
New update includes Mode switcher.

Mode 1 - This is the original code. It doesn't check if a point is available before adding it to the 'possibility list', so it makes thick clumps.

Mode 2 - Runs slightly faster than Mode 1, but tens to make lots of paths with a low possibility count. Increase the maximum possibilities to get better clumping.

Mode 3 - A mixture of Mode 1 and 2. Swaps between modes every 'x' steps. Probably best for actually making levels in something.

Also added the option to generate the map in one go, instead of drawing pixel by pixel.
[/edit]

I haven't submitted anything in ages so here's something I did in my lunch hour.

Settings:
seed - used for random numbers. Same seed means same map will be generated. Can be words or numbers
Start x,y - where the first dot begins
Max. possibilities - the maximum number of points the path can branch onto. Above 50 makes it spread fairly slow.
Show possibilities - Draw blue dots where branches can happen

Buttons should be self-explanatory.


Random numbers generated from [link] by :iconwonderwhy-er:
Image size
600x400px 47.61 KB
Comments20
Join the community to add your comment. Already a deviant? Log In
Zireael07's avatar
This is brilliant!