File size: 232 Bytes
1e40c2a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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);
};
|