Book Image

Learning iPhone Game Development with Cocos2D 3.0

By : Kirill Muzykov
Book Image

Learning iPhone Game Development with Cocos2D 3.0

By: Kirill Muzykov

Overview of this book

Table of Contents (19 chapters)
Learning iPhone Game Development with Cocos2D 3.0
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Detecting and filtering collisions


If we start the game right now and don't move the hunter, the stone will fall straight on his head. As we're not creating a game about some superhero, this should lead to some bad consequences for the hunter.

To be able to react to the stone falling on the hunter's head, we need to detect the collision between the hunter and the stone. Fortunately, it is quite easy to do so.