boardgame-phaser/packages/onitama-game/src/main.tsx

14 lines
376 B
TypeScript
Raw Normal View History

2026-04-07 16:29:21 +08:00
import { h } from 'preact';
import { GameUI } from 'boardgame-phaser';
import * as gameModule from './game/onitama';
import './style.css';
import App from "@/ui/App";
import {OnitamaScene} from "@/scenes/OnitamaScene";
const ui = new GameUI({
container: document.getElementById('ui-root')!,
root: <App gameModule={gameModule} gameScene={OnitamaScene}/>,
});
ui.mount();