下载cocos2d-lua引擎代码的同时,也会下载下来自带项目,但是项目文件并不能直接打开,需要用以下步骤才能查看:

  1. Cocos Code IDE新建一个Cocos Lua Project,命名为LuaTests
  2. 把cocos2d-x/tests/lua-tests/src内全部文件复制到LuaTests/src
  3. 把LuaTests/config.json中init_cfg下的entry值改为”src/controller.lua”
  4. 把cocos2d-x/tests/lua-tests/res和cocos2d-x/tests/cpp-tests/Resources内的文件全部复制到LuaTests/res
  5. 在Cocos Code IDE中运行LuaTests即可

参考文档



blog comments powered by Disqus

Published

07 August 2015

Tags