generated from tipragot/rust
Add a renderer system with temp assets #60
|
@ -65,8 +65,8 @@ fn generate_map(
|
|||
fn get_type_tile(position: (f32, f32), noise: &Perlin) -> Tile {
|
||||
let value = noise.get([position.0 as f64, position.1 as f64]);
|
||||
match value {
|
||||
v if v <= -0.5 => Tile::Hill,
|
||||
v if v >= 0.5 => Tile::Forest,
|
||||
v if v <= -0.4 => Tile::Hill,
|
||||
v if v >= 0.4 => Tile::Forest,
|
||||
_ => Tile::Grass,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue