Advertisement
alestane

Skeleton constructor

Jul 1st, 2013
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.21 KB | None | 0 0
  1. function newSpecialObject(info)
  2.     local self = display.newCircle(info.x, info.y, info.radius)
  3.     function self:Push(x, y)
  4.         self:applyLinearImpulse(x/10, y/10, self.x, self.y)
  5.     end
  6.     self.Property = 5
  7.     return self
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement