mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 10:01:23 +01:00
refactor: compile service worker
This commit is contained in:
parent
5e6f599348
commit
392cc24f7c
12 changed files with 491 additions and 263 deletions
|
|
@ -8,8 +8,10 @@ export function markFeatures() {
|
|||
|
||||
const cells = grid.cells;
|
||||
const heights = grid.cells.h;
|
||||
|
||||
cells.f = new Uint16Array(cells.i.length); // cell feature number
|
||||
cells.t = new Int8Array(cells.i.length); // cell type: 1 = land coast; -1 = water near coast
|
||||
|
||||
grid.features = [0];
|
||||
|
||||
for (let i = 1, queue = [0]; queue[0] !== -1; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue