here_be_dragons/examples/example1.rs

21 lines
430 B
Rust
Raw Normal View History

2020-10-17 16:25:16 +00:00
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);
}