Cocos2d-x has a lot of APIs. However, there are no APIs that we need, for example, In-App purchase, push notification, and so on. In this case, we have to create original APIs and need to write Objective-C code for iOS or Java code for Android. In addition, we want to get the device information that it is running on. When we want to adjust for each device, we have to get the device information such as the running application version, device name, dpi on device, and so on. However, doing so is very difficult and confusing. In this chapter, you can write the native code for iOS or Android and get the device information.
Cocos2d-x Cookbook
By :
Cocos2d-x Cookbook
By:
Overview of this book
Table of Contents (18 chapters)
Cocos2d-x Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Getting Started with Cocos2d-x
Creating Sprites
Working with Labels
Building Scenes and Layers
Creating GUIs
Playing Sounds
Working with Resource Files
Working with Hardware
Controlling Physics
Improving Games with Extra Features
Taking Advantages
Index
Customer Reviews