map: tune island size

This commit is contained in:
Astro 2022-01-15 02:32:11 +01:00
parent fd3a82f475
commit fbb833b6fb
1 changed files with 6 additions and 6 deletions

View File

@ -164,8 +164,8 @@ pub fn build(
let step = rng.gen_range(0.2..1.0); let step = rng.gen_range(0.2..1.0);
let top = step + rng.gen_range(0.5..1.0); let top = step + rng.gen_range(0.5..1.0);
let height = rng.gen_range(4.0..128.0); let height = rng.gen_range(4.0..128.0);
let width = rng.gen_range(8.0..20.0); let width = rng.gen_range(7.0..18.0);
let depth = rng.gen_range(8.0..15.0); let depth = rng.gen_range(7.0..18.0);
// central hill // central hill
let center = Ground { let center = Ground {
x: (x, width), x: (x, width),
@ -176,20 +176,20 @@ pub fn build(
let north = Ground { let north = Ground {
x: (x, rng.gen_range(BRIDGE_WIDTH..width)), x: (x, rng.gen_range(BRIDGE_WIDTH..width)),
y: ((step - height) / 2.0, height + step), 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 { let south = Ground {
x: (x, rng.gen_range(BRIDGE_WIDTH..width)), x: (x, rng.gen_range(BRIDGE_WIDTH..width)),
y: ((step - height) / 2.0, height + step), 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 { 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), y: ((step - height) / 2.0, height + step),
z: (z, rng.gen_range(BRIDGE_WIDTH..depth)), z: (z, rng.gen_range(BRIDGE_WIDTH..depth)),
}; };
let west = Ground { 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), y: ((step - height) / 2.0, height + step),
z: (z, rng.gen_range(BRIDGE_WIDTH..depth)), z: (z, rng.gen_range(BRIDGE_WIDTH..depth)),
}; };