Search code examples
cocos2d-iphoneios6iphone-5

What changes should I do to my cocos2d-iphone 1.0.1 project to run it on iPhone 5?


I've been developing a cocos2d-iphone 1.0.1 game project and have been testing it on an iPhone 4.

I'll soon be getting an iPhone 5. I just updated Xcode to 4.5.2.

Will my project be able to at least run on the iPhone 5 immediately? Or is there a major change I must do in my project? As in, is something going to crash when I try to run it?


Solution

  • If you don't do anything, the app will run on iPhone 5 at the original resolution. Meaning there will be empty (black) space on the sides.

    Once you add an image named Default-586h@2x.png with dimensions 640x1136 then your app will use the entire width of the iPhone 5 screen. You will have to adapt your layout to support the iPhone 5 screen size.