import { Game } from './game/Game.js'; // Start the game immediately (script is at end of body, DOM is ready) console.log('Starting 3D Coin Collector Game with ECS Architecture'); console.log('Press "T" to toggle performance monitor (or shake device on mobile)'); // Wait a tick to ensure everything is loaded setTimeout(() => { try { const game = new Game(); // Make game accessible from console for debugging window.game = game; } catch (error) { console.error('Game initialization failed:', error); } }, 0);