Read the version 0.5.0 update.
Writing your own multiplayer boilerplate using Socket.io/SockJS/etc is time consuming and you'll face a range of different problems along the way. Colyseus should have all these problems figured out already.
- Authoritative game server
- WebSocket-based communication
- Binary delta compressed state (through msgpack / fossil-delta-js)
- Match-making
- Custom room handlers
- Scalable vertically
- Lag compensation (using timeframe, a Timeline implementation) - Not automatic. You should apply the technique as you need, in the client and/or the server.
See roadmap for our future plans.
- JavaScript/TypeScript
- Unity
- CoronaSDK (compatible with server v0.3.x)
- Construct2 (compatible with server v0.4.0)
- Cocos2d-x (compatible with server v0.4.0)
See the official examples for usage reference with the latest version of Colyseus.
- (outdated: v0.2.x) tanx (source-code) - Multiplayer tanks game, originally from PlayCanvas
- (outdated: v0.3.x) tic-tac-toe (source-code) - Simple Tic Tac Toe using pixi.js
- (outdated: v0.3.x) LD35 entry: dotower (source-code) - Simple experimental MOBA using pixi.js
- (outdated: v0.4.x) React Example (source-code) - Example integrating with ReactJS
We encourage you to contribute to Colyseus! Please check out the Contributing guide for guidelines about how to proceed. Join us!
Everyone interacting in Colyseus and its sub-projects' codebases, issue trackers and chat rooms is expected to follow the code of conduct.
MIT