mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
v1.0.35
This commit is contained in:
parent
57f1bd9695
commit
0d88fd740e
5 changed files with 34 additions and 12 deletions
|
|
@ -8,8 +8,7 @@
|
|||
|
||||
const generate = function() {
|
||||
console.time('generateHeightmap');
|
||||
cells = grid.cells;
|
||||
p = grid.points;
|
||||
cells = grid.cells, p = grid.points;
|
||||
cells.h = new Uint8Array(grid.points.length);
|
||||
|
||||
const input = document.getElementById("templateInput");
|
||||
|
|
@ -19,12 +18,13 @@
|
|||
"High Island": 22,
|
||||
"Low Island": 10,
|
||||
"Continents": 20,
|
||||
"Archipelago": 32,
|
||||
"Archipelago": 30,
|
||||
"Mediterranean":3,
|
||||
"Peninsula": 3,
|
||||
"Pangea": 2,
|
||||
"Isthmus": 2,
|
||||
"Atoll": 1};
|
||||
"Atoll": 1,
|
||||
"Shattered": 2};
|
||||
input.value = rw(templates);
|
||||
}
|
||||
|
||||
|
|
@ -39,6 +39,7 @@
|
|||
case "Peninsula": templatePeninsula(); break;
|
||||
case "Pangea": templatePangea(); break;
|
||||
case "Isthmus": templateIsthmus(); break;
|
||||
case "Shattered": templateShattered(); break;
|
||||
}
|
||||
|
||||
console.timeEnd('generateHeightmap');
|
||||
|
|
@ -193,6 +194,14 @@
|
|||
addStep("Trough", "4-8", "15-30", "70-100", "80-100");
|
||||
}
|
||||
|
||||
// Heighmap Template: Shattered
|
||||
function templateShattered() {
|
||||
addStep("Hill", "8", "35-40", "15-85", "30-70");
|
||||
addStep("Trough", "10-20", "40-50", "5-95", "5-95");
|
||||
addStep("Range", "5-7", "30-40", "10-90", "20-80");
|
||||
addStep("Pit", "12-20", "30-40", "15-85", "20-80");
|
||||
}
|
||||
|
||||
function getBlobPower() {
|
||||
switch (+densityInput.value) {
|
||||
case 1: return .98;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue