- self.lvlgen.iterations = 1.max(self.lvlgen.iterations - 1);
- println!("{} iteration(s) of cellular automata", self.lvlgen.iterations);
+ if self.lvlgen.iterations > 0 {
+ self.lvlgen.iterations -= 1;
+ self.world.level = self.lvlgen.generate();
+ }
+ }
+ Event::KeyDown { keycode: Some(Keycode::KpMultiply), .. } => {
+ self.lvlgen.wall_smooth_radius += 1;