在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