about summary refs log tree commit diff stats
path: root/html/space/game.js
diff options
context:
space:
mode:
Diffstat (limited to 'html/space/game.js')
-rw-r--r--html/space/game.js8
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