local c = cc
local Node = c.Node
function Node:align(anchorPoint, x, y)
self:setAnchorPoint(display.ANCHOR_POINTS)
if x and y then self:setPosition(x, y) end
return self
end
我现在用的是cocos2d-x3.1,自己想做一层lua对node的扩展,就仿照quick的写,但是
当执行到定义function Node:align时却stack overflow了,不知道为啥,是不是quick做过处理