LegendsOfCoyoteGulch/src/main.js

40 lines
849 B
JavaScript

import { MenuScene } from './scenes/MenuScene.js';
import { Gulch } from './scenes/gulch.js';
import { NNDungeon } from './scenes/NNDungeon.js';
import { GlobalState } from './globalState.js';
const config = {
type: Phaser.AUTO,
scale: {
mode: Phaser.Scale.FIT,
autoCenter: Phaser.Scale.CENTER_BOTH,
width: 1600,
height: 900,
parent: 'game-container'
},
physics: {
default: 'arcade',
arcade: {
gravity: { x: 0, y: 0 },
debug: false
}
},
backgroundColor: '#000000',
scene: [
MenuScene,
Gulch,
NNDungeon,
]
};
const game = new Phaser.Game(config);
game.globalState = new GlobalState();
// game.playerData = {
// score: 0,
// maxHearts: 3,
// startGulchX: 950,
// startGulchY: 4250,
// }