Skip to Main Content
Learning iPhone Game Development with Cocos2D 3.0
book

Learning iPhone Game Development with Cocos2D 3.0

by Kirill Muzykov
June 2014
Beginner to intermediate content levelBeginner to intermediate
434 pages
9h 49m
English
Packt Publishing
Content preview from Learning iPhone Game Development with Cocos2D 3.0

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning Swift Games Development for iOS: Develop 2D and 3D games Using Apple's SceneKit and SpriteKit

Beginning Swift Games Development for iOS: Develop 2D and 3D games Using Apple's SceneKit and SpriteKit

James Goodwill, Wesley Matlock

Publisher Resources

ISBN: 9781782160144Supplemental Content