Here is some code that can help you make the following folders in the Resource folder
ipadhd ipad iphone
Use this code in Appdelegate.cpp in the applicationdidfinishing method
CCSize screenSize = pEGLView->getFrameSize(); //set design size for iPad retina CCSize designSize = CCSize(2048, 1536); CCEGLView::sharedOpenGLView()->setDesignResolutionSize(designSize.width, designSize.height, kResolutionExactFit); if (screenSize.height > 768) { CCFileUtils::sharedFileUtils()->setResourceDirectory("ipadhd"); } else if (screenSize.height > 320) { CCFileUtils::sharedFileUtils()->setResourceDirectory("ipad"); } else { CCFileUtils::sharedFileUtils()->setResourceDirectory("iphone"); } pDirector->setContentScaleFactor(screenSize.height/designSize.height)
Hope this helps. Place the images on iphone respectively in the iphone folder, ipad images in ipad folder and hd images in ipadhd folder. pDirector here is a CCDirector variable.
source share