Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Demo of creating an realtime mutliplayer game in HTML5 that uses a client-server approach in which the clients send only sampled input to the server
Branch: dev
Pull request Compare This branch is even with onedayitwillmake:dev.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
assets
css
js
.gitignore
DemoBox2DApp.html
DemoBubbleDots.html
DemoCircles.html
DemoHelloWorld.html
README.md
RealtimeMultiplayerNodeJs.iml
apple-touch-icon.png
favicon.ico

README.md

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

How to use

  1. Download this repo
  2. In the terminal type "node js/DemoHelloWorld/server.js"
  3. Browse to "/DemoHelloWorld.html"

DemoBox2D

RealtimeMultiplayerNodeJS comes with 3 demos

DemoHelloWorld

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

DemoCircle

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
DemoCircle

DemoBox2D

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
DemoBox2D

Something went wrong with that request. Please try again.