Zenith-Vector/src/config.js

26 lines
541 B
JavaScript

import { MenuScene } from './scenes/MenuScene.js';
import { GameScene } from './scenes/GameScene.js';
export const config = {
type: Phaser.AUTO,
width: 600,
height: 800,
parent: 'game-container',
physics: {
default: 'arcade',
arcade: {
gravity: { y: 0 },
debug: false
}
},
scene: [
MenuScene,
GameScene,
],
scale: {
mode: Phaser.Scale.FIT,
autoCenter: Phaser.Scale.CENTER_BOTH
}
};
const game = new Phaser.Game(config);