feat: Migrate to Vite build system, update dependencies, and refine graphics setup with debugging aids.

This commit is contained in:
2026-01-03 07:09:19 +00:00
parent 5b7edf0729
commit ad5b025a8b
37 changed files with 44297 additions and 360 deletions

View File

@@ -39,7 +39,7 @@ export class Game {
loop(time) {
requestAnimationFrame(this.loop.bind(this));
const dt = Math.min((time - this.lastTime) / 1000, 0.1); // Cap dt
const dt = this.lastTime === 0 ? 0 : Math.min((time - this.lastTime) / 1000, 0.1); // Cap dt
this.lastTime = time;
if (this.isRunning) {