【发布时间】:2012-07-27 07:10:57
【问题描述】:
我已经使用 cocos2dx 为尺寸为 480*320 的设备制作了 android 版本,它工作正常,但是当我将相同的版本放入另一台尺寸为 640*480 的 android 设备中时strong> 发生缩放问题....
我正在使用以下代码自动调整大小,但它不起作用:
AppDelegate app;
CCEGLView& eglView = CCEGLView::sharedOpenGLView();
eglView.setViewName("Hello Lua");
eglView.setFrameSize(480, 320);
// set the design resolution screen size, if you want to use Design Resoulution scaled to current screen, please uncomment next line.
// eglView.setDesignResolutionSize(480, 320);
【问题讨论】:
-
您遇到的扩展问题到底是什么?截图会有所帮助。
标签: android ios cocos2d-iphone cocos2d-x