change the resolution size of js template to (960 * 640) ,consistent with other templates

This commit is contained in:
lunhao.guo 2015-12-29 15:24:21 +08:00
parent 69a6406661
commit d3387f5ab2
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ bool AppDelegate::applicationDidFinishLaunching()
#if(CC_TARGET_PLATFORM == CC_PLATFORM_WP8) || (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT)
glview = cocos2d::GLViewImpl::create("HelloJavascript");
#else
glview = cocos2d::GLViewImpl::createWithRect("HelloJavascript", Rect(0,0,900,640));
glview = cocos2d::GLViewImpl::createWithRect("HelloJavascript", Rect(0,0,960,640));
#endif
director->setOpenGLView(glview);
}

View File

@ -61,7 +61,7 @@ cc.game.onStart = function(){
// Adjust viewport meta
cc.view.adjustViewPort(true);
// Setup the resolution policy and design resolution size
cc.view.setDesignResolutionSize(800, 450, cc.ResolutionPolicy.SHOW_ALL);
cc.view.setDesignResolutionSize(960, 640, cc.ResolutionPolicy.SHOW_ALL);
// Instead of set design resolution, you can also set the real pixel resolution size
// Uncomment the following line and delete the previous line.
// cc.view.setRealPixelResolution(960, 640, cc.ResolutionPolicy.SHOW_ALL);