feat: Migrate to Vite build system, update dependencies, and refine graphics setup with debugging aids.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user