摘要: 记得把extern.lua拷贝到你的资源目录,这里要用到require "extern"MyLayer = class("MyLayer", function(fileName) return CCSprite:create(fileName) end)function MyLayer.CreateWithFile(fileName) local o = MyLayer.new(fileName) o.m_nA = 0 return oendfunction MyLayer:setVisible(flag) getmetatable(self... 阅读全文
posted @ 2014-03-20 18:36 MrBlue 阅读(504) 评论(0) 推荐(0) 编辑