O'Reilly logo

Multiplayer Game Development with HTML5 by Rodrigo Silveira

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

Matching players within game rooms

After we have broken down the various concepts into simple fundamentals, you will see that implementing each module is not as complicated as they may have sounded at first. Player matching is one such example.

There are different ways in which you might want to match players in a game room. While our sample game doesn't do any complex matching (we allow players to blindly match themselves), you should know that there are more options here.

The following are some ideas about how you might go about matching players into the same game world. Keep in mind that there are third-party services, such as Google's Play Services API, that you can use to help you with these.

Inviting friends into your world

One of the most

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