persistence in database

only maybe a little bit shitty but it works very well
still needs chunk unloading
This commit is contained in:
りき萌 2024-08-18 12:28:57 +02:00
parent 2594afcc1b
commit 70e979057c
16 changed files with 970 additions and 273 deletions

View file

@ -90,10 +90,6 @@ class CanvasRenderer extends HTMLElement {
this.ctx.globalCompositeOperation = "source-over";
this.ctx.drawImage(chunk.canvas, x, y);
}
this.ctx.globalCompositeOperation = "difference";
this.ctx.fillStyle = "white";
this.ctx.fillText(`${chunkX}, ${chunkY}`, x, y + 12);
}
}