Threlte + Nakama Starter for Realtime Multiplayer Games
Under development
This is a starter project for realtime multiplayer games using Threlte and Nakama.
Features
- Build setup for Nakama with TypeScript server runtime using Rollup as the bundler
- Device or Google Authentication
- Session and socket management
- Realtime Matches
AbstractMatchManager
abstract class to easily manage realtime matches with full type safetyTimeTrialMatchManager
example implementationnew TimeTrialMatchManager('matchId')
to create a match managermanager.join()
to join the matchmanager.send('MessageType', { foo: 'bar' })
to send a message to the servermanager.on('MessageType', (message) => { console.log(message) })
to listen for messages from the servermanager.leave()
to leave the match
- Shared types between server and client
- Utilities to make processing incoming messages easier (client and server)