cocos2d-lua学习之如何打开自带测试项目 Life is but a span.
下载cocos2d-lua引擎代码的同时,也会下载下来自带项目,但是项目文件并不能直接打开,需要用以下步骤才能查看:
- Cocos Code IDE新建一个Cocos Lua Project,命名为LuaTests
- 把cocos2d-x/tests/lua-tests/src内全部文件复制到LuaTests/src
- 把LuaTests/config.json中init_cfg下的entry值改为”src/controller.lua”
- 把cocos2d-x/tests/lua-tests/res和cocos2d-x/tests/cpp-tests/Resources内的文件全部复制到LuaTests/res
- 在Cocos Code IDE中运行LuaTests即可
blog comments powered by Disqus