bool AppDelegate::applicationDidFinishLaunching() { // initialize director auto director = Director::getInstance(); auto glview = director->getOpenGLView(); if(!glview) { glview = GLView::create("My Game"); director->setOpenGLView(glview); } glview->setFrameSize(700, 500); ..... }
粉色一行为修改大小,但需要在原代码中加入红色一行,不然会出现报错;
但是,这样改完以后,坐标系响应存在问题,原先的关闭按钮失效.
再去研究研究..
Cocos2d 下修改显示大小,布布扣,bubuko.com
原文:http://www.cnblogs.com/runeslayer/p/3892214.html