Build fully-featured, highly interactive multiplayer games with HTML5
Developing an online game can be just as much fun as playing it. However, orchestrating multiple clients and keeping everyone in sync with a game server, reducing and managing network latency (all the while preventing cheating), and making sure every player has an excellent experience can quickly become overwhelming.
This book will teach you how to develop games that support multiple players interacting in the same game world, and show you how to perform network programming operations in order to implement such systems. It covers the fundamentals of game networking by developing a real-time multiplayer game of Tic-tac-toe before moving on to convert an existing 2D single-player snake game to multiplayer, using a more scalable game design for online gaming.
Finally you will be tackling more advanced networking topics, allowing you to handle problems such as server queries from multiple users and making your multiplayer games more secure and less prone to cheating.
What You Will Learn
Design games using various multiplayer models
Create authoritative game servers
Develop game clients that communicate and synchronize with other clients through WebSockets
Write responsive multiplayer games using client prediction
Upgrade an existing single-player game by adding multiplayer mechanics
Use state-of-the-art technologies to make the development process and its end product enjoyable to programmers and amazing to the player
Create peer-to-peer gaming using WebRTC
Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.