Asteroids-2026/js/main.js

21 lines
461 B
JavaScript

import BootScene from './scenes/BootScene.js';
import MenuScene from './scenes/MenuScene.js';
import GameScene from './scenes/GameScene.js';
const config = {
type: Phaser.AUTO,
width: 1600,
height: 900,
backgroundColor: '#000011',
physics: {
default: 'arcade',
arcade: {
gravity: { x: 0, y: 0 },
debug: false
}
},
scene: [BootScene, MenuScene, GameScene]
};
new Phaser.Game(config);