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 – adding angry birds

At the moment, the stones are just launched from the air. Of course, if we move the stone's spawning point above the screen, we can imagine that there are some birds flying high and dropping the stones.

Note

In fact, we placed the launch point below the screen edge so that you can see them being launched.

However, wouldn't it be cooler to see your enemy, to look them in the eyes? Let's do this and add some birds that are dropping stones.

What we're going to do is to spawn a bird off the screen. The bird will carry a stone using a joint.

Note

Joints are constraints that used to simulate interaction between objects. For example, you can simulate one object tied with a rope to another one. It will become clear in a ...

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