Multiplayer Game Development with HTML5

Build fully-featured, highly interactive multiplayer games with HTML5

Multiplayer Game Development with HTML5

Rodrigo Silveira

1 customer reviews
Build fully-featured, highly interactive multiplayer games with HTML5
Mapt Subscription
FREE
$29.99/m after trial
eBook
$12.00
RRP $23.99
Print + eBook
$29.99
RRP $29.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$12.00
$29.99
$29.99p/m after trial
RRP $23.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781785283109
Paperback180 pages

Book Description

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.

Table of Contents

Chapter 1: Getting Started with Multiplayer Game Programming
Understanding the basics of networking
Socket programming in JavaScript
Game clients
Game servers
Putting it all together – Tic-tac-toe
Summary
Chapter 2: Setting Up the Environment
JavaScript outside the browser with Node.js
Writing modular JavaScript
Managing Node.js packages with Npm
Managing frontend packages with Bower
Automating your workflow
Summary
Chapter 3: Feeding a Snake in Real Time
Hello world for game development
The game loop
Implementing an authoritative server
Understanding the game loop
Lobby and room system
Matching players within game rooms
Socket.io
Summary
Chapter 4: Reducing Network Latency
Dealing with network latency
Fixed-time step
Synchronizing the clients
Predicting the future with a local game server
Error correction
Summary
Chapter 5: Leveraging the Bleeding Edge
HTML5 – the final frontier
Maximizing your game with the fullscreen mode
Better controlling with gamepad
Peer-to-peer with WebRTC
Capturing the moment with Media Capture
Summary
Chapter 6: Adding Security and Fair Play
Common security vulnerabilities
Building secure games and applications
Reinventing the wheel
Fair play and the user experience
Summary

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

Authors

Table of Contents

Chapter 1: Getting Started with Multiplayer Game Programming
Understanding the basics of networking
Socket programming in JavaScript
Game clients
Game servers
Putting it all together – Tic-tac-toe
Summary
Chapter 2: Setting Up the Environment
JavaScript outside the browser with Node.js
Writing modular JavaScript
Managing Node.js packages with Npm
Managing frontend packages with Bower
Automating your workflow
Summary
Chapter 3: Feeding a Snake in Real Time
Hello world for game development
The game loop
Implementing an authoritative server
Understanding the game loop
Lobby and room system
Matching players within game rooms
Socket.io
Summary
Chapter 4: Reducing Network Latency
Dealing with network latency
Fixed-time step
Synchronizing the clients
Predicting the future with a local game server
Error correction
Summary
Chapter 5: Leveraging the Bleeding Edge
HTML5 – the final frontier
Maximizing your game with the fullscreen mode
Better controlling with gamepad
Peer-to-peer with WebRTC
Capturing the moment with Media Capture
Summary
Chapter 6: Adding Security and Fair Play
Common security vulnerabilities
Building secure games and applications
Reinventing the wheel
Fair play and the user experience
Summary

Book Details

ISBN 139781785283109
Paperback180 pages
Read More
From 1 reviews

Read More Reviews