Cocos2d-x Resolution

The most troublesome

Design Resolution

In AppDelegate.cpp(AppDelegate::applicationDidFinishLaunching()), there is glView codes.
To add setDesignResolutionSize, fix design to some extent

if(!glview) {
        glview = GLView::create("My Game");
        director->setOpenGLView(glview);
        //glview->setDesignResolutionSize(480, 320, kResolutionShowAll);
}

kResolutionShowAll is mode.kResolutionShowAll, kResolutionNoBorder, kResolutionExactFit

Separate image using search path

We have display width and height, so we can differentiate images by changing file path.

CCFileUtils::sharedFileUtils()->setSearchPaths(searchPath);	

searchPath is file path