deathgrindfreak / dungeon_generator

Generates random roguelike dungeons

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dungeon Generator

Generates a random dungeon. This is based entirely off of the great blog post by Bob Nystrom.

301x225 sized dungeon

Command Line Arguments

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]

Animation

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).

gif showing a dungeon being generated

About

Generates random roguelike dungeons


Languages

Language:Rust 100.0%