Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Pong played over multiple, side-by-side monitors
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
frontend
lib
nbproject
node_modules/socket.io
public
.gitignore
README
server.js

README

--------------------------------------------------
- README
--------------------------------------------------

Multiplayer pong!

We assume that users will not cheat

Frontend
--------------------------------------------------

JSON messages:

all don't strictly need the player field, can infer from server side

Leaves a screen
{type:"screen", player:#id, direction:"left" or "right" or "topo", 
 location:{x:#, y:#}, velocity:{x:#,y:#}, geometry:{w:#,h:#}}
Bounces
{type:"bounce", player:#id, velocity:{x:#,y:#}}
End Game
{type:"drop", player:#id}
Score change
{type:"score", player:#id, score:#}
Something went wrong with that request. Please try again.