From 89e9bf072ee2dd38bb565b224c3965f1f3345bef Mon Sep 17 00:00:00 2001 From: klangner Date: Mon, 19 Oct 2020 21:35:24 +0200 Subject: [PATCH] smaller example1 --- examples/example1.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/example1.rs b/examples/example1.rs index 6b9f3e3..32efff9 100644 --- a/examples/example1.rs +++ b/examples/example1.rs @@ -3,6 +3,7 @@ use mapgen::{ filter::{ NoiseGenerator, CellularAutomata, + CullUnreachable, AreaStartingPosition, XStart, YStart, @@ -11,10 +12,11 @@ use mapgen::{ fn main() { - let map = MapBuilder::new(80, 50) + let map = MapBuilder::new(20, 20) .with(NoiseGenerator::uniform()) .with(CellularAutomata::new()) .with(AreaStartingPosition::new(XStart::CENTER, YStart::CENTER)) + .with(CullUnreachable::new()) .build(); println!("{:}", &map);