feat: single player

This commit is contained in:
2025-09-23 18:16:50 +08:00
commit c7d34659db
22 changed files with 4272 additions and 0 deletions

10
src/index.tsx Normal file
View File

@@ -0,0 +1,10 @@
/* @refresh reload */
import { render } from 'solid-js/web'
import './index.css'
import App from './App.tsx'
import Game from './Game.tsx'
import { LocalGameStatus } from './model.tsx'
const root = document.getElementById('root')
render(() => window.location.protocol === 'file:' ? <Game offline={true} game={new LocalGameStatus(0)}/> : <App />, root!)