Colyseus is a Authoritative Multiplayer Game Server for Node.js. It allows you to focus on your gameplay instead of bothering about networking.
The mission of this framework is to be the easiest solution for creating your own multiplayer games in JavaScript.
This framework is fairly new and is being evolved constantly. You're encouraged to take a look on some games being developed with it and make your own!
- WebSocket-based communication
- Simple API in the server-side and client-side.
- Automatic state synchronization between server and client.
- Matchmaking clients into game sessions
- Scale vertically or horizontally
- Game Engine: Colyseus is agnostic of the engine you're using. Need Physics? Add your own logic / package.
- Database: It's up to you to configure and select which database you'd like to use.
See roadmap for our future plans.
Create a bare-bones Colyseus server by using npm init colyseus-app
.
npm init colyseus-app my-colyseus-server
cd my-colyseus-server
npm start
- JavaScript/TypeScript
- Defold Engine (defold.com)
- Unity (unity3d.com)
- Haxe (haxe.org)
- Cocos2d-x (cocos2d-x.org)
- Construct 3 (construct3.net)
- @colyseus/social - Authentication and Social features for Colyseus
- @colyseus/proxy - Proxy & Service Discovery for scaling Colyseus
- @colyseus/monitor - A Web Monitoring Panel for Colyseus
- @colyseus/loadtest - Utility tool for load testing Colyseus
- colyseus-hxjs: Haxe externs for colyseus server (by @serjek)
- colyseus-java: Client for Java (by @doorbash)
- Colyseus-ObjC: Client for Objective C (by @swittk)
- Colyseus-for-C2: Client for Construct 2 (by @Keevle)
See the official examples for usage reference with the latest version of Colyseus.
- Colyseus + PixiJS Boilerplate (source-code) - Simplistic agar.io implementation using PixiJS
- Colyseus + BabylonJS Boilerplate (source-code) - Bare-bones BabylonJS example
- (outdated: v0.9.x) Tic Tac Toe (source-code) - Simple Tic Tac Toe using PixiJS
- (outdated: v0.8.x) tanx (source-code) - Multiplayer tanks game, originally from PlayCanvas
- (outdated: v0.4.x) React Example (source-code) - Example integrating with ReactJS
- (outdated: v0.3.x) LD35 entry: dotower (source-code) - Simple experimental MOBA using PixiJS
Thanks goes to these wonderful people (emoji key):
Endel Dreyer 💻 📖 💡 |
AnubisCode 🐛 💻 💵 🤔 |
Kyle J. Kemp 💬 🐛 💻 🤔 |
Abhishek Hingnikar 💬 🐛 🤔 👀 |
Federico 🐛 💻 |
OYED 💬 🐛 💵 🤔 |
Derwish 🐛 🔧 |
---|---|---|---|---|---|---|
VF 🐛 🤔 |
Wenish 🐛 |
This project follows the all-contributors specification. Contributions of any kind are welcome!
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