jacobinathanialpeterson's picture
Upload 1035 files
1e40c2a
raw
history blame
232 Bytes
function Button(config) {
var parent = new jaws.Sprite(config),
key;
for (key in parent) {
this[key] = parent[key];
}
}
Button.prototype.isClicked = function(x, y) {
return this.rect().collidePoint(x, y);
};