1.右键New Cocos Project,选择Create From Existing Resource,在Resource Location中输入testLua工程的路径,选择全部资源json
2.点击Next,选择设备信息,点击Finish。lua
3.修改config.json配置文件中的entry字段值为:"src/controller.lua"(testLua的入口文件)资源
项目结构以下:io
选中TestLua工程,点击Debug Wn32按钮或F11运行test
运行效果:配置