html5 - Making a real-time multiplayer minigame -


i have simple concept of minigame want playable 4 players @ once. played on html5 canvas, , have working in single-player 3 cpu-controlled "players".

the game simple, relies on timing , pushing button arrow points towards it. in theory have game focus on user's own button, , show how did @ end, i'd arrow move faster better people doing - allow difficulty of game adjust itself.

so i'm thinking need use websockets. trouble is, i've never used them before , can't find single resource isn't insanely confusing.

by understanding, need client send message server when player pushes button, , on receipt of message server can compute how accurate player was, , adjust speed accordingly, passing on result other players.

i'm worried effect lag have on setup. if arrow reaches next player before browser has received message server informing them of how last player did (and therefore speed arrow going at)?

am being ambitious this? should stick idea of having 4 individual games total scores tallied together?


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -