map: tune island size
This commit is contained in:
parent
fd3a82f475
commit
fbb833b6fb
12
src/map.rs
12
src/map.rs
|
@ -164,8 +164,8 @@ pub fn build(
|
|||
let step = rng.gen_range(0.2..1.0);
|
||||
let top = step + rng.gen_range(0.5..1.0);
|
||||
let height = rng.gen_range(4.0..128.0);
|
||||
let width = rng.gen_range(8.0..20.0);
|
||||
let depth = rng.gen_range(8.0..15.0);
|
||||
let width = rng.gen_range(7.0..18.0);
|
||||
let depth = rng.gen_range(7.0..18.0);
|
||||
// central hill
|
||||
let center = Ground {
|
||||
x: (x, width),
|
||||
|
@ -176,20 +176,20 @@ pub fn build(
|
|||
let north = Ground {
|
||||
x: (x, rng.gen_range(BRIDGE_WIDTH..width)),
|
||||
y: ((step - height) / 2.0, height + step),
|
||||
z: (z - (depth / 2.0) - 1.0, 2.0),
|
||||
z: (z - (depth / 2.0) - 1.5, 3.0),
|
||||
};
|
||||
let south = Ground {
|
||||
x: (x, rng.gen_range(BRIDGE_WIDTH..width)),
|
||||
y: ((step - height) / 2.0, height + step),
|
||||
z: (z + (depth / 2.0) + 1.0, 2.0),
|
||||
z: (z + (depth / 2.0) + 1.5, 3.0),
|
||||
};
|
||||
let east = Ground {
|
||||
x: (x - (width / 2.0) - 1.0, 2.0),
|
||||
x: (x - (width / 2.0) - 1.5, 3.0),
|
||||
y: ((step - height) / 2.0, height + step),
|
||||
z: (z, rng.gen_range(BRIDGE_WIDTH..depth)),
|
||||
};
|
||||
let west = Ground {
|
||||
x: (x + (width / 2.0) + 1.0, 2.0),
|
||||
x: (x + (width / 2.0) + 1.5, 3.0),
|
||||
y: ((step - height) / 2.0, height + step),
|
||||
z: (z, rng.gen_range(BRIDGE_WIDTH..depth)),
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue