摘要:
记得把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... 阅读全文