Book Image

Cocos2d Game Development Blueprints

By : Jorge Jordán
Book Image

Cocos2d Game Development Blueprints

By: Jorge Jordán

Overview of this book

Table of Contents (15 chapters)
Cocos2d Game Development Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


In this chapter, we addressed platform games, one of the most popular genres of all time, and how to build one of these games on iOS devices.

We covered how to create a scene where the terrain is loaded depending on some rules we set previously. Thanks to the variety of blocks available, we were able to texture a kind of random ground that is playable at the same time.

Then you learned how to deal with horizontal scrolling so all the blocks travel at the same speed and everything in the scene works together to simulate that the Yeti is running.

As we wanted to control how nodes interact with each other, we developed our own collision system in order to detect when the Yeti was touching the floor or a platform block. This way, we can be more accurate when defining physics interactions.

This chapter also showed you how to create an initial menu in the game for the player to choose the difficulty level. You also learned how to continue this selection in the scene.

Keep reading if you want...