Search code examples
iphoneipadcocos2d-iphoneretina-display

Cocos2d and iPhone 5 Retina Support?


I would like to know how to include retina images for the iPhone 5 in cocos2d. I already have large images from the iPad version of the game. How do I do that ? Unfortunately there is not very much information on the internet, so I thought I'll ask here. I do not have a working iPhone version of the game yet.


Solution

  • This is built into cocos2d. Use xxx.png for standard resolution image, then provide a xxx-hd.png image and cocos2d will use that high-res version on Retina devices (including iPhone 5).

    The file suffixes for iPad are -ipad and -ipadhd for Retina iPads.