O'Reilly logo

Pro iOS 5 Augmented Reality by Kyle Roche

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

Chapter  8

Building a cocos2D AR Game

In this chapter, we're going to extend on what we learned in Chapter 7 and build a fully functional AR game. There are so many scenarios or possible story lines for augmented reality games. Although this plot is a little ridiculous, it'll demonstrate some important capabilities for AR gaming. We'll learn how to structure a cocos2D game with a menu and launch options. We'll also handle scoring and end game scenes. The entire game will be played on top of a camera view.

Overview

Every game starts with a story. Here's our story: Some alien pumpkins have taken over our planet. The universal police have released a special device that lets us see the pumpkins and destroy them by tapping on them through the camera. ...

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