try: COCOS_CONSOLE_ROOT
except Exception:
print "COCOS_CONSOLE_ROOT not define. Please define COCOS_CONSOLE_ROOT in your environment!"
sys.exit(1)
command = '%s/cocos compile -p android -s %s -m %s' % (COCOS_CONSOLE_ROOT, app_android_root, build_mode)
except Exception:
print "COCOS_CONSOLE_ROOT not define. Please define COCOS_CONSOLE_ROOT in your environment!"
sys.exit(1)
command = '%s/cocos compile -p android -s %s -m %s' % (COCOS_CONSOLE_ROOT, app_android_root, build_mode)
本文介绍如何正确配置Cocos2d-x开发环境,并通过示例代码展示如何利用Cocos2d-x进行Android平台的游戏编译。重点在于设置COCOS_CONSOLE_ROOT环境变量及使用命令行工具进行编译。
1万+

被折叠的 条评论
为什么被折叠?



