Cocos中的屏幕适配解决:
AppDelegate.cpp中的applicationDidFinishLaunching()添加:
glview->setDesignResolutionSize(设计尺寸宽.0f,设计尺寸高.0f,ResolutionPolicy::FIXED_HEIGHT);
director->setContenScaleFactor(资源尺寸宽.0f,设计尺寸宽.0f);
std::vector<std::string> searchPath;
searchPath.push_back(“文佳夹名”);
FileUtils::getInstance()->setSearchPaths(searchPath);