tyrants-edge/src/game.js

41 lines
1.2 KiB
JavaScript

import { BootScene } from './scenes/BootScene.js';
import { IntroScene } from './scenes/IntroScene.js';
import { MainMenuScene } from './scenes/MainMenuScene.js';
import { CampaignSelectScene } from './scenes/CampaignSelectScene.js';
import { CampaignScene } from './scenes/CampaignScene.js';
import { SkirmishSetupScene } from './scenes/SkirmishSetupScene.js';
import { BattleScene } from './scenes/BattleScene.js';
import { BattleResultScene } from './scenes/BattleResultScene.js';
import { DeckBuilderScene } from './scenes/DeckBuilderScene.js';
import { CollectionScene } from './scenes/CollectionScene.js';
import { StoreScene } from './scenes/StoreScene.js';
import { FusionScene } from './scenes/FusionScene.js';
const config = {
type: Phaser.AUTO,
width: 1920,
height: 1080,
backgroundColor: '#1a1a2e',
parent: document.body,
scale: {
mode: Phaser.Scale.FIT,
autoCenter: Phaser.Scale.CENTER_BOTH
},
scene: [
BootScene,
IntroScene,
MainMenuScene,
CampaignSelectScene,
CampaignScene,
SkirmishSetupScene,
BattleScene,
BattleResultScene,
DeckBuilderScene,
CollectionScene,
StoreScene,
FusionScene
]
};
export const game = new Phaser.Game(config);