Generates a random dungeon. This is based entirely off of the great blog post by Bob Nystrom.
dungeon_generator
Generates a random dungeon
USAGE:
dungeon_generator [OPTIONS]
OPTIONS:
-a, --attempts <ATTEMPTS> The number attempts the program should use to place rooms [default:
200]
--animate Generates a PPM stream (intended for created video with ffmpeg, etc
...)
-h, --height <HEIGHT> The height of the dungeon in "grids" (This number must be odd)
[default: 91]
--help Print help information
-w, --width <WIDTH> The width of the dungeon in "grids" (This number must be odd)
[default: 121]
If you pipe to ffmpeg
with the --animate
argument, you can also view how the dungeon is actually generated (along with some completely unnecessary coloration).