Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am ptom98 on github.
* I am ptom (https://keybase.io/ptom) on keybase.
* I have a public key ASCpRlkSFrl-8o6KDzQL1gnavId3kLuWZAcZAskrcIf_rAo
To claim this, I am signing this object:
@ptom98
ptom98 / Button.lua
Created July 25, 2012 14:22
Codea Lady Killer Attempt
Button = class()
function Button:init(args)
-- you can accept and set parameters here
self.width=args.width or 100
self.height=args.height or 100
self.x=args.x or WIDTH - 100
self.y=args.y or 0
self.isPressed=false
self.touchId=nil