here_be_dragons/examples/example1.rs
2020-10-17 18:25:16 +02:00

21 lines
430 B
Rust

use mapgen::{
MapBuilder,
filter::{
NoiseGenerator,
CellularAutomata,
AreaStartingPosition,
XStart,
YStart,
},
};
fn main() {
let map = MapBuilder::new(80, 50)
.with(NoiseGenerator::uniform())
.with(CellularAutomata::new())
.with(AreaStartingPosition::new(XStart::CENTER, YStart::CENTER))
.build();
println!("{:}", &map);
}