Adding Svelte to the project

This commit is contained in:
David Négrier 2021-05-11 17:37:21 +02:00
parent 867f783d5e
commit 9bc79c3ed3
6 changed files with 178 additions and 637 deletions

View file

@ -21,6 +21,8 @@ import { SelectCharacterMobileScene } from './Phaser/Login/SelectCharacterMobile
import {HdpiManager} from "./Phaser/Services/HdpiManager";
import {waScaleManager} from "./Phaser/Services/WaScaleManager";
import {Game} from "./Phaser/Game/Game";
import App from './Components/App.svelte';
import {HtmlUtils} from "./WebRtc/HtmlUtils";
const {width, height} = coWebsiteManager.getGameSize();
@ -147,3 +149,10 @@ coWebsiteManager.onResize.subscribe(() => {
});
iframeListener.init();
const app = new App({
target: document.body,
props: { },
})
export default app