2026-04-04 14:22:35 +08:00
|
|
|
import { h } from 'preact';
|
|
|
|
|
import { GameUI } from 'boardgame-phaser';
|
2026-04-04 22:52:54 +08:00
|
|
|
import * as boop from './game';
|
2026-04-04 14:22:35 +08:00
|
|
|
import './style.css';
|
|
|
|
|
import App from "@/ui/App";
|
|
|
|
|
import {GameScene} from "@/scenes/GameScene";
|
|
|
|
|
|
|
|
|
|
const ui = new GameUI({
|
|
|
|
|
container: document.getElementById('ui-root')!,
|
2026-04-04 22:52:54 +08:00
|
|
|
root: <App gameModule={boop} gameScene={GameScene}/>,
|
2026-04-04 14:22:35 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
ui.mount();
|