File size: 433 Bytes
a715dd9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import { Game } from './game.js';
// Get the render target div
var renderDiv = document.getElementById('renderDiv');
// Check if renderDiv exists
if (!renderDiv) {
console.error('Fatal Error: renderDiv element not found.');
} else {
// Initialize the game with the render target
var game = new Game(renderDiv);
// Start the game
game.start(); // The actual setup happens async within the Game class constructor
}
|