1
0
forked from sent/waves
chunglloyd_unblocker/public/assets/g/tetris/Button.js
2025-04-09 17:11:14 -05:00

14 lines
232 B
JavaScript

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);
};