alestane icon

Skeleton constructor

alestane | PRO | 07/02/13 02:39:51 AM UTC | 0 ⭐ | 333 👁️ | Never ⏰ | []
Lua |

210 B

|

None

|

0 👍

/

0 👎

function newSpecialObject(info)
    local self = display.newCircle(info.x, info.y, info.radius)
    function self:Push(x, y)
        self:applyLinearImpulse(x/10, y/10, self.x, self.y)
    end
    self.Property = 5
    return self
end

Comments