MajorVictory / realtime-multiplayer-in-html5

Read the full article: http://buildnewgames.com/real-time-multiplayer/ An example using node.js, socket.io and HTML5 Canvas to explain and demonstrate realtime multiplayer games in the browser.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Forked Copy

The original repository this is from is essentially frozen. It includes reference material for an article on game networking, so the author is understandably reluctant to change it.

Here's what my changes do:

  • switches game.core.js from object oriented to a data oriented approach
  • uses es modules everywhere
  • moves number functions to not extend the built in number type

Realtime Multiplayer In HTML5

Read the article here : http://buildnewgames.com/real-time-multiplayer/

View the demo here : http://notes.underscorediscovery.com:4004/?debug

An example using node.js, socket.io and HTML5 Canvas to explain and demonstrate realtime multiplayer games in the browser.

Getting started (Using npm package.json)

Getting started (Manual install)

  • Get node.js
  • Install socket.io npm install socket.io
  • Install node-udid npm install node-uuid
  • Install express npm install express
  • Install esm for modern module support npm install esm
  • Run node -r esm app.js inside the cloned folder
  • Visit http://127.0.0.1:4004/?debug

License

MIT Licensed. See LICENSE if required.

About

Read the full article: http://buildnewgames.com/real-time-multiplayer/ An example using node.js, socket.io and HTML5 Canvas to explain and demonstrate realtime multiplayer games in the browser.

License:MIT License


Languages

Language:JavaScript 98.5%Language:HTML 1.0%Language:CSS 0.4%