Chapter 12. Networked Games

Networked games allow multiple players to connect over the Internet and play together. Some of the most popular games in recent years—whether Halo, Call of Duty, or World of Warcraft—either support networking or are exclusively networked games. Playing with or against another human provides an experience that even today cannot be matched by an AI.

Implementing networked games is a complex topic, and there are entire books on the subject. This chapter covers the basics of how data is transmitted over a network and how games must be architected differently in order to support networking.


Imagine you are mailing a physical letter via the postal service. At a minimum, there is an envelope that has the addresses ...

Get Game Programming Algorithms and Techniques: A Platform-Agnostic Approach now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.