1
votes

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.

1
There is no ordinary version in iPhone 5. iPhone 5 have retina by default.Ramaraj T
Yeah I actually mean different iPhone versions. So,basically that I could make out which device is used and accordingly use high-res images...the_critic

1 Answers

1
votes

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.