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

Summary


This was one of the cornerstone chapters of the book. Making the objects move and interact with each other and allowing users to control the game is an essential part of any game.

Right now, the game might look like a simple tutorial demo, but even with just what we have now and tweaking the number of birds, their spawn time and speed, the hunter's shooting characteristics, and other parameters can turn this game into a fun and competitive one.

Of course, there are parts that beg for improvement. Logging into the console whether we've won or lost, and not displaying the number of points that we have definitely won't do compared to other games. Also, the collision detection is pretty rough, we have no sound, and the birds just disappear when we hit them.

We'll learn how to fix all these in the next chapters, but for now, make sure that you've learned how to add and remove sprites from the scene, how to store them in arrays, and make them interact. It is also very important to understand...