O'Reilly logo

Learning iPhone Game Development with Cocos2D 3.0 by Kirill Muzykov

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

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

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