feat: more onitama goodness

This commit is contained in:
2026-04-07 17:46:37 +08:00
parent 8bbf20f457
commit d4819f7cc3
8 changed files with 727 additions and 256 deletions
+6 -1
View File
@@ -18,6 +18,11 @@ export default function App(props: { gameModule: any, gameScene: { new(): Phaser
};
const label = useComputed(() => gameHost.value.gameHost.status.value === 'running' ? 'Restart' : 'Start');
const phaserConfig: Partial<Phaser.Types.Core.GameConfig> = {
width: 800,
height: 700,
};
return (
<div className="flex flex-col h-screen">
<div className="p-4 bg-gray-100 border-t border-gray-200">
@@ -29,7 +34,7 @@ export default function App(props: { gameModule: any, gameScene: { new(): Phaser
</button>
</div>
<div className="flex-1 flex relative justify-center items-center">
<PhaserGame>
<PhaserGame config={phaserConfig}>
<PhaserScene sceneKey="OnitamaScene" scene={scene.value} autoStart data={gameHost.value} />
</PhaserGame>
</div>