mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-16 14:55:22 +01:00
[Bug] Revert change to imports in main.ts
This commit is contained in:
parent
477b8de7d1
commit
e2be51f3f7
@ -1,7 +1,5 @@
|
||||
import "#app/polyfills"; // All polyfills MUST be loaded first for side effects
|
||||
|
||||
import { BattleScene } from "#app/battle-scene";
|
||||
import { LoadingScene } from "#app/loading-scene";
|
||||
import { InvertPostFX } from "#app/pipelines/invert";
|
||||
import { initI18n } from "#app/plugins/i18n";
|
||||
import { isBeta, isDev } from "#constants/app-constants";
|
||||
@ -65,6 +63,8 @@ Phaser.GameObjects.Rectangle.prototype.setPositionRelative = setPositionRelative
|
||||
|
||||
async function startGame(gameManifest?: Record<string, string>): Promise<void> {
|
||||
await initI18n();
|
||||
const LoadingScene = (await import("./loading-scene")).LoadingScene;
|
||||
const BattleScene = (await import("./battle-scene")).BattleScene;
|
||||
const game = new Phaser.Game({
|
||||
type: Phaser.WEBGL,
|
||||
parent: "app",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user