drusepth/Multipong
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
--------------------------------------------------
- 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:#}