the-jewel-weaver/src/main.js

30 lines
637 B
JavaScript

import { GameScene } from './GameScene.js';
const GAME_CONFIG = {
type: Phaser.AUTO,
scale: {
mode: Phaser.Scale.FIT,
autoCenter: Phaser.Scale.CENTER_BOTH,
width: 1600,
height: 900,
parent: 'game-container'
},
parent: 'game-container',
backgroundColor: '#2c3e50',
scene: [
GameScene
],
physics: {
default: 'arcade',
arcade: {
gravity: { y: 100 },
debug: false
}
}
};
// Create the game instance
const game = new Phaser.Game(GAME_CONFIG);
console.log('The Jewel Weaver game initialized successfully!');