Out of bounds checking

I decide to use world bounds overlap checking:
Phaser.Geom.Rectangle.Overlaps(this.scene.physics.world.bounds, sprite.getBounds())
If the returning value is false, than the object is completely out of bounds.

4 Likes