Percept.js handles the crazy multiplayer network stuff.
You focus on making your damn game.
Inspired by the Valve Source Multiplayer Networking Whitepaper, I set out to implement the ideas using Coffeescript and Node.js.
This is still really Alpha
Right now, the documentation is either non-existant, or really lacking. But I'm working on it, because I know that code without documentation (and tests, also currently non-existant) feels ghetto and unsavoury to use.
That said, take a look at examples/simple and see if you can figure things out. It's really pretty cool.
How you can help
Right now, what I really need is to learn how to package this in a way that's elegant and will play nicely in the browser and server-side in Node.js. If you want to mentor me here, please get in touch.
Maybe that means CommonJS modules, or RequireJS, or something else. For now, I have an NPM package for the server-side and a ghetto build task in the Cakefile to compile the client-side. I don't like it, but it works for now. Remember, this is way alpha.
- Server-side rewinding/replaying events (right now we only broadcast events out to clients as we get them)
- Circular buffers for states on entities
(The MIT License)
Copyright (c) 2011 Gabe Hollombe email@example.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.