mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
v1.5.77 - river data change
This commit is contained in:
parent
07f0eff52c
commit
12fd553b0d
4 changed files with 64 additions and 66 deletions
|
|
@ -61,13 +61,11 @@
|
|||
relief.sort((a, b) => (a.y + a.s) - (b.y + b.s));
|
||||
|
||||
// append relief icons at once using pure js
|
||||
void function renderRelief() {
|
||||
let reliefHTML = "";
|
||||
for (const r of relief) {
|
||||
reliefHTML += `<use href="${r.i}" x="${r.x}" y="${r.y}" width="${r.s}" height="${r.s}"/>`;
|
||||
}
|
||||
terrain.html(reliefHTML);
|
||||
}()
|
||||
let reliefHTML = "";
|
||||
for (const r of relief) {
|
||||
reliefHTML += `<use href="${r.i}" x="${r.x}" y="${r.y}" width="${r.s}" height="${r.s}"/>`;
|
||||
}
|
||||
terrain.html(reliefHTML);
|
||||
|
||||
TIME && console.timeEnd('drawRelief');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue