There are a lot of dpi (dots per inch) variations for each device. You can prepare several kinds of images by resolution. You might want to change an image by the dpi running on the device. In this recipe, if you would like to get the dpi that your game is running on, you need to use the Cocos2d-x function.
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