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

12 lines
229 B
TypeScript
Raw Normal View History

import { h } from 'preact';
import { GameUI } from 'boardgame-phaser';
2026-04-03 15:18:47 +08:00
import './style.css';
import App from "@/ui/App";
2026-04-03 15:18:47 +08:00
const ui = new GameUI({
container: document.getElementById('ui-root')!,
2026-04-12 17:21:49 +08:00
root: <App/>,
2026-04-03 15:18:47 +08:00
});
ui.mount();