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

Time for action – running tests


There are several Xcode projects in the distribution folder and one is particularly interesting to us. It is called cocos2d-tests-ios.xcodeproj. We're going to open this project and run it. Refer to the following steps:

  1. Go ahead and open the cocos2d-tests-ios.xcodeproj project in Xcode.

  2. After the project is loaded, open a list of its targets, as shown in the following screenshot:

  3. Select the cocos2d-tests-ios target to run on iPhone Retina (4-inch) using iOS 7.1 (or any other simulator or even your device), as shown in the following screenshot:

  4. Now run the project. You should see a list of tests you can run. Select different tests and use arrows in the bottom corners to review different test variations.

What just happened?

We just found a great source of Cocos2D sample code as well as seeing some of Cocos2D in action. You can review all tests and find something interesting. The most important part is that you can straight away review the code of what you see on...