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 learned how to develop a state machine in order to define a tutorial which will teach the user the mechanics of the mathematics game that we developed throughout the chapter.

By doing this, we defined the steps needed to take in order to solve a level's arithmetic operation.

Then we learned how to store the progress of the player in the user defaults so we can load the correct level, and how to force the synchronization of these values in order to prevent unexpected crashes.

The chapter also teaches us how to create .plist files to store the data that will define the different levels, and how to create these files by using Xcode.

Finally, we have seen how to load transitions between scenes and how to push scenes in two different ways.

In the next chapter, we are going to create a platforms game in which we will define custom collision logic, and we will learn how to create a varied terrain. So read on and learn the basics of one of the most popular game genres.