feat: Multiplayer
### Server implementation
Built on [h3](https://h3.dev/) ?
Make multiplayer behavior very easy to handle with a few modes :
- `local` : Peer to peer through WebRTC
- `server` : Websocket
"Trust" should be configurable and provide some utilities ?
Physic simulation should be runnable on the server.
### Build process
If we want to create a client & a server bundle from one single end-to-end typed codebase, maybe we should bundle with [Rolldown](https://rolldown.rs/) or [Vite](https://vite.dev/) and implement a custom plugin to separate/generate code accordingly ?
We should make sure server code stay on the server bundle.
0 条评论