ABSTRACT

As the Internet continues to blossom as a tool of social interaction, games are just one type of application that is increasingly demanded in a multiple-user format. Many games are simply more fun when played with others. In this chapter we are going to look at a very basic multiplayer game and how it works under the hood. Robust multiplayer games are extremely time consuming to produce because of the nature of real-time changing data, so for this example we will revisit the MixUp game from Chapter 14. In that chapter, we demonstrated how the use of interfaces allowed for a “ plug-in ” system of sorts to be used for the puzzle image data. Once the different classes were created, it was a trivial task to change the game from a static image puzzle to a constantly updating camera feed. Now we will utilize that interface once again to build a class where the puzzle image constantly updates with your opponent’s camera.