摘要: 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()的书 阅读全文
posted @ 2013-11-28 18:28 Mr轨迹 阅读(293) 评论(0) 推荐(0) 编辑
摘要: --更多详细参考 http://luaer.diandian.com/post/2011-10-09/5660047 ----更多详细参考 http://blog.csdn.net/goodai007/article/details/8077285--local function main() pr... 阅读全文
posted @ 2013-11-28 11:29 Mr轨迹 阅读(14393) 评论(0) 推荐(0) 编辑
摘要: demo.luaprint("11111111111")dofile("./src/main.lua") --执行Lua脚本文件main.lualocal function fileRW() print("22222222222") ------------------------------------------------------------ ---------------------READ FILE------------------------------ ------------------------------- 阅读全文
posted @ 2013-11-28 10:17 Mr轨迹 阅读(2558) 评论(0) 推荐(0) 编辑