Added a tundra fringe and ragged polar ice edges to the map generator

This commit is contained in:
2026-09-20 17:20:46 +02:00
parent b29be13799
commit bf4fc6d6a0
10 changed files with 155 additions and 34 deletions
+9
View File
@@ -51,6 +51,15 @@ export class HeightmapTest extends TestCase {
this.assertEqual(field.at(point.x, point.y), 0, "points over the sea stay at zero");
}
test_tundra_stays_flat_despite_its_rocky_texture() {
const field = new HeightField(fixture(() => "Tundra"));
for (let x = -2; x <= 2; x++) {
for (let y = -2; y <= 2; y++) {
this.assertEqual(field.tileHeight(x, y), 0, "tundra never rises");
}
}
}
test_the_open_sea_stays_flat_beside_a_high_coast() {
// The distance blend would pull a coastal sea point up towards the mountain
// next to it; the sea mask pins it to exactly zero instead.