O'Reilly logo

iOS Game Programming Cookbook by Bhanu Birani, Chhavi Vaishnav

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Anatomy of multiplayer games

In a single-player game, there is only one player, so talking about the game as an object that maintains all of the game behavior, whereas if we understand the anatomy of multiplayer games, we'll see that it's totally different. In multiplayer games, there are multiple players playing the same game, so technically for every device, there is a player who is actively driving the game on that device. This is called the local player, and all other players are treated as remotes players for that device. The local player's activities should ideally be updated on the remote players' devices, which is the foremost challenge in multiplayer development. The update of the local player is called syncing the game on some other ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required