diff options
author | elioat <elioat@tilde.institute> | 2025-04-09 22:00:15 -0400 |
---|---|---|
committer | elioat <elioat@tilde.institute> | 2025-04-09 22:00:15 -0400 |
commit | 0b4e014792b6969a0627fcf8e651f236102027af (patch) | |
tree | 9e6087241b00f211d75192e1f2d4f6d820fb2aa3 /html/space/game.js | |
parent | a375a8bb1084bef90967734c6ec0233fca306145 (diff) | |
download | tour-0b4e014792b6969a0627fcf8e651f236102027af.tar.gz |
*
Diffstat (limited to 'html/space/game.js')
-rw-r--r-- | html/space/game.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/html/space/game.js b/html/space/game.js index 0a106cf..ecd7abc 100644 --- a/html/space/game.js +++ b/html/space/game.js @@ -10,10 +10,12 @@ let isRunning = true; // Initialize all systems function init() { + console.log('Initializing game...'); initRenderer(); initInput(); initPhysics(); initGameState(); + console.log('Game initialized'); } // Main game loop using requestAnimationFrame @@ -29,9 +31,15 @@ function gameLoop(timestamp) { updateGameState(deltaTime); render(); + // Debug output + if (Math.random() < 0.01) { // Only log occasionally to avoid spam + console.log('Game loop running, deltaTime:', deltaTime); + } + requestAnimationFrame(gameLoop); } // Start the game +console.log('Starting game...'); init(); requestAnimationFrame(gameLoop); \ No newline at end of file |