Time for action – limiting the aiming range

Currently, we can just tap on the bird and the hunter will hit it. This is not very competitive; it would be harder to hit the bird if we needed to touch the screen closer to the hunter. We're going to limit the distance from the hunter where you can tap to aim.

At the end of the previous chapter, we added a bunch of images that we're going to use. There is one special image called power_meter.png, which we will use to show the aiming range.

Time for action – limiting the aiming range

Note

The power_meter.png image represents an arrow colored in white. Don't worry if you can't see it in the finder thumbnails or in preview, as you just can't see white ...

Get Learning iPhone Game Development with Cocos2D 3.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.