Phaser.Component.Overlap = function (){ } ; Phaser.Component.Overlap.prototype = { overlap: function (displayObject){ return Phaser.Rectangle.intersects(this.getBounds(), displayObject.getBounds()); } } ;