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 – creating the Retina version of the tile map


Just as with many other resources used in Cocos2D games, you need to have several versions to support non-Retina and Retina displays. Luckily, we don't have to create a separate tile map for 3.5-inch Retina and 4-inch Retina displays. Also, we won't have to repeat all the steps and recreate a tile map using a different tileset.

Note

You need to understand that tile maps for Retina and non-Retina displays will only differ by size of images used in them, and the layout of the tiles should be the same; of course, if you don't want to display different levels for Retina and non-Retina displays.

However, normally, you'd have to create two versions by simply repeating all your work and placing all tiles in the same places.

Just as if you had an image and you needed a 2x image and instead of scaling it in graphics editor, you redraw it from scratch. The following technique allows you to get a Retina version of the same tile map without re...