September 2012
Intermediate to advanced
552 pages
14h 48m
English
This chapter examined how to use WebSockets and a library called Socket.io to build real-time games where multiple players can interact directly with each other. It showed how to take code that is similar to a single-player game from earlier in the book and change it into a multiplayer game that passes messages through a central server. Using the code presented here you should be able to build both real-time and semi-real-time games that have near-instant interaction between multiple players.
Read now
Unlock full access