cocos code ide中横竖屏切换

前端之家收集整理的这篇文章主要介绍了cocos code ide中横竖屏切换前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

在config.json,

"init_cfg": {
    "isLandscape": false,"isWindowTop": false,"name": "CocosLuaGame","width": 960,"height": 640,"entry": "src/main.lua","consolePort": 6010,"uploadPort": 6020,"forwardConsolePort": 10089,"forwardUploadPort": 10091
  }
在isLandsscape中,false代表竖屏,true代表横屏。 原文链接:https://www.f2er.com/cocos2dx/342570.html

猜你在找的Cocos2d-x相关文章