Airplay Tutorial: An Apple TV Multiplayer Quiz Game

Learn how to make a multiplayer iOS quiz game that displays one thing to an Apple TV, and uses your device as a controller! By Gustavo Ambrozio.

Leave a rating/review
Save for later
Share
You are currently viewing page 4 of 4 of this article. Click here to view the first page.

Where To Go From Here?

Congratulations — you’ve just built a multiplayer client/server game using Game Kit that features a shared secondary display! Here’s the final project for you to download.

Now that you have the fundamentals of client-server game programming in Game Kit, you should be able to build more apps that take advantage of a second screen; games, in particular, can benefit greatly from this type ref gaming paradigm. You can use the screen as your game view, the device as a controller, and perhaps add some information as you would typically see in a HUD.

GameKit’s peer-to-peer communication opens the door to a lot of multiplayer games or apps; you can see how easy it is to implement multiplayer using Apple’s APIs. It’s also worth knowing that GKSession has been deprecated in iOS7 and has been replaced by the Multipeer Connectivity Framework. The two frameworks have a lot of similarities so your knowledge of GKSession will translate really well to the new MCSession class and its companion classes.

I hope you enjoyed the tutorial. You’re now ready to go off on your own and create wonderful things with AirPlay and GameKit’s peer-to-peer communication.

If you have any questions or comments, please share them in the discussion below!

Gustavo Ambrozio

Contributors

Gustavo Ambrozio

Author

Over 300 content creators. Join our team.