8000 GitHub - gitter-badger/colyseus: Minimalistic MMO Game Server for Node.js.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

gitter-badger/colyseus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

colyseus

Minimalistic MMO Game Server for Node.js.

Colyseus is in early stage development. Don't expect a mature and ready-to-scale piece of software here

Features

TODO:

  • "area of interest" updates/broadcasts

Room API

Callbacks

  • onJoin (client) - when a client joins the room
  • onLeave (client) - when a client leaves the room
  • onMessage (client, data) - when a client send a message
  • update () - update method, usually to broadcast patch state
  • dispose () - cleanup callback, called after there's no more clients on the room

Methods

  • lock() - lock the room to new clients
  • unlock() - unlock the room to new clients
  • send(client, data) - send data to a particular client
  • broadcast(data) - send data to all connected clients
  • sendState(client) - send current state to a particular client
  • broadcastState() - send current state to all clients
  • broadcastPatch() - send patched (diff) state to all clients

Production usage

https://devcenter.heroku.com/articles/node-best-practices http://pm2.keymetrics.io/docs/usage/specifics/#babeljs

Options to consider

node --optimize_for_size --max_old_space_size=920 --gc_interval=100 server.js

Game Server inspiration implementation references:

License

MIT

About

Minimalistic MMO Game Server for Node.js.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.8%
  • HTML 1.2%
0