Dungeon generator for games.
Dungeon generator that produces a 2D-array of different values that can be used to create a dungeon for a game. The script is written in Perl and generates a gif image of the dungeon.
The values used for the algorithm in the 2D array is the following:
The image used in the script is just used to represent the actual dungeon. In a game, the 2D array would be used and the different values in the array would be parsed.
The result of the script can look like this: [dungeon.gif]
The dungeon generator will be used in Qake voxel-engine that can be found here: https://www.assetstore.unity3d.com/#!/content/68150
And the result implemented in Qake voxel engine using the output from the script (though ported to C#) can look like this: [qake_dungeon.png]
perl genmap.pl && open dungeon.gif
The algorithm is very basic but produces very good random dungeons. The process is as follows.
MIT License.