1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
local Sprite = { x = 0, y = 0, } Sprite.__index = Sprite function Sprite:update(dt) end function Sprite.draw(sp) end return Sprite