Realtime Mutliplayer Game Engine using Node.js / websockets for HTML5 that uses a client-server approach in which the clients send only sampled input to the server
JavaScript CSS

RealtimeMultiplayerNodeJS is a framework specifically for building HTML5 multiplayer games with the Client / Server model


  • Updated to work with 0.9.16 (thx @brendonjohn)

Video Demo

How to use

  1. Download this repo
  2. In the terminal, navigate to the root directory of the repo
  3. Run "npm install"
  4. Run "node js/DemoBox2D/server.js"
  5. Within another terminal, navigate to the root directory and run "python -m SimpleHTTPServer"
  6. From the browser, open ""


RealtimeMultiplayerNodeJS comes with 3 demos


The most basic interesting working demo I could come up with. Objects move from left to right DemoHelloWorld


A demonstration of the engine's simple CircleCollision engine, which can provide you with simple collision information and fires an event when two objects collide with the two objects.
This demo also shows one implementation of having a special kind of entity which is controlled by the keyboard from a connected user. A character controlled entity


This demo uses a Box2D.js implementation to create a world, and show's off the idea of synchronized physics, and taking advantage that all the simulation happens on the server.
It also shows synchronized interaction between multiple users, and an example of sending a message to the server which it interprets back into the game