mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 02:01:22 +01:00
more various climate
This commit is contained in:
parent
6fd8862d7a
commit
0bf8b568a9
5 changed files with 17 additions and 17 deletions
18
main.js
18
main.js
|
|
@ -754,8 +754,8 @@ function defineMapSize() {
|
|||
function getSizeAndLatitude() {
|
||||
const template = document.getElementById("templateInput").value; // heightmap template
|
||||
const part = grid.features.some(f => f.land && f.border); // if land goes over map borders
|
||||
const max = part ? 85 : 100; // max size
|
||||
const lat = part ? gauss(P(.5) ? 30 : 70, 15, 20, 80) : gauss(50, 20, 15, 85); // latiture shift
|
||||
const max = part ? 80 : 100; // max size
|
||||
const lat = () => gauss(P(.5) ? 40 : 60, 15, 25, 75); // latiture shift
|
||||
|
||||
if (!part) {
|
||||
if (template === "Pangea") return [100, 50];
|
||||
|
|
@ -766,14 +766,14 @@ function defineMapSize() {
|
|||
if (template === "Low Island" && P(.1)) return [100, 50];
|
||||
}
|
||||
|
||||
if (template === "Pangea") return [gauss(75, 20, 30, max), lat];
|
||||
if (template === "Volcano") return [gauss(30, 20, 10, max), lat];
|
||||
if (template === "Mediterranean") return [gauss(30, 30, 15, 80), lat];
|
||||
if (template === "Peninsula") return [gauss(15, 15, 5, 80), lat];
|
||||
if (template === "Isthmus") return [gauss(20, 20, 3, 80), lat];
|
||||
if (template === "Atoll") return [gauss(10, 10, 2, max), lat];
|
||||
if (template === "Pangea") return [gauss(70, 20, 30, max), lat()];
|
||||
if (template === "Volcano") return [gauss(20, 20, 10, max), lat()];
|
||||
if (template === "Mediterranean") return [gauss(25, 30, 15, 80), lat()];
|
||||
if (template === "Peninsula") return [gauss(15, 15, 5, 80), lat()];
|
||||
if (template === "Isthmus") return [gauss(15, 20, 3, 80), lat()];
|
||||
if (template === "Atoll") return [gauss(5, 10, 2, max), lat()];
|
||||
|
||||
return [gauss(40, 20, 15, max), lat]; // Continents, Archipelago, High Island, Low Island
|
||||
return [gauss(30, 20, 15, max), lat()]; // Continents, Archipelago, High Island, Low Island
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue