摘要:
1、Lua代码书写时:BUG:local Hero = class{"Hero",function() CCLuaLog("new a Hero") return display.newSprite("pic/tank.png")end}修改:local Hero = class("Hero",function() CCLuaLog("new a Hero") return display.newSprite("pic/tank.png")end)对比可知:class()的书 阅读全文
摘要:
--更多详细参考 http://luaer.diandian.com/post/2011-10-09/5660047 ----更多详细参考 http://blog.csdn.net/goodai007/article/details/8077285--local function main() pr... 阅读全文
摘要:
demo.luaprint("11111111111")dofile("./src/main.lua") --执行Lua脚本文件main.lualocal function fileRW() print("22222222222") ------------------------------------------------------------ ---------------------READ FILE------------------------------ ------------------------------- 阅读全文