mirror of
https://github.com/wassname/phaser-plugin-isometric.git
synced 2026-09-09 11:28:50 +08:00
outOfBounds kill uses isometric bounds
This commit is contained in:
@@ -511,6 +511,10 @@ Phaser.Plugin.Isometric.Body.prototype = {
|
||||
if (this.collideWorldBounds) {
|
||||
this.checkWorldBounds();
|
||||
}
|
||||
|
||||
if (this.sprite.outOfBoundsKill && !this.game.physics.isoArcade.bounds.intersects(this.isoBounds)){
|
||||
this.sprite.kill();
|
||||
}
|
||||
}
|
||||
|
||||
this._dx = this.deltaX();
|
||||
|
||||
Reference in New Issue
Block a user