The program generates .pbm images (or display in console) of the dungeon map for visual perception,
but the basic generator algorithm simply manipulates a vector of tiles.
Algorithm based on this
This program creates cave-like rooms with corridors. Could be a cave with mining tunnels!
< - exit
Z - enemy
! - chest
blue - exit
red - enemy
yellow - chest
The project has only one file, so you can build it with a single command:
clang -std=c99 -Wall -Wextra -pedantic main.c -o generator
For Rust version:
cargo run
The time to generate a map with a scale of 100 (300x200 tiles) is range from 0.002 to 0.003 seconds.
If the program was built by the command in the Building section.
- Fixed the bug with generating a map outside the boundary.
- Added the input for scale.
- Replaced stack with the heap.
- Added corridors and rooms.
- Added
<; E; *;tiles. - Added image support
- Added Rust version




