mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 02:01:22 +01:00
massive rework continues
This commit is contained in:
parent
d1b07fff01
commit
37391c8e8b
129 changed files with 4080 additions and 22216 deletions
|
|
@ -26,11 +26,10 @@ function markup({distanceField, neighbors, start, increment, limit = utils.INT8_
|
|||
|
||||
// mark Grid features (ocean, lakes, islands) and calculate distance field
|
||||
export function markupGrid(grid, config, utils) {
|
||||
const {TIME, seed, aleaPRNG} = config;
|
||||
const {rn} = utils;
|
||||
const { TIME } = config.debug;
|
||||
|
||||
TIME && console.time("markupGrid");
|
||||
Math.random = aleaPRNG(seed); // get the same result on heightmap edit in Erase mode
|
||||
|
||||
const {h: heights, c: neighbors, b: borderCells, i} = grid.cells;
|
||||
const cellsNumber = i.length;
|
||||
|
|
@ -299,4 +298,4 @@ export function specify(pack, grid, modules) {
|
|||
|
||||
return "freshwater";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue