[][src]Crate procedural_generation

Utility for creating procedurally generated maps

Quick Start

use procedural_generation::Generator;

fn main() {
    Generator::new()
        .with_size(5, 10)
        .spawn_terrain(1, 5)
        .spawn_terrain(2, 3)
        .show();
}

Produces the following (prints with colors in terminal!):

0 0 0 0 0
0 0 0 0 0
1 1 1 0 2
2 0 0 2 2
0 0 0 2 2
0 0 2 2 2
0 2 2 2 1
0 2 2 0 1
1 1 1 1 1
0 1 1 0 0

Structs

Generator