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");
        //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.


searchPath is file path