Explicitly paused Timer continues if you un-focus and focus the browser window (thanks georgiee)

Added TimerEvent.pendingDelete and checks in Timer.update, so that removing an event in a callback no longer throws an exception (thanks georgiee)
Fixed TypeScript defs on lines 1741-1748 (thanks wombatbuddy)
Added SAT.js to TypeScript definition. Now compiles properly.
Added missing Line.js to the Grunt file.
Tilemap#paste diffX and diffY equations changed, fixed issue #393 (thanks brejep)
Added missing return value in Body.hitLeft and hitRight, fixes issue #398 (thanks ram64).
Fixed easing tween example case. Issue #379 (thanks wesleywerner)
Removed SAT.js UMD wrapped, fixes issue #361 (thanks luizbills)
This commit is contained in:
photonstorm
2014-02-12 15:09:44 +00:00
parent 59ea6746db
commit 3c631768f2
5 changed files with 146 additions and 131 deletions
+6 -2
View File
@@ -980,7 +980,7 @@ Phaser.Physics.Arcade.Body.prototype = {
if (this.collideCallback && !this.collideCallback.call(this.collideCallbackContext, Phaser.LEFT, this, body, response))
{
return;
return false;
}
if (!this.moves || this.immovable || this.blocked.right || this.touching.right)
@@ -1004,6 +1004,8 @@ Phaser.Physics.Arcade.Body.prototype = {
this.touching.left = true;
body.touching.right = true;
return true;
},
/**
@@ -1027,7 +1029,7 @@ Phaser.Physics.Arcade.Body.prototype = {
if (this.collideCallback && !this.collideCallback.call(this.collideCallbackContext, Phaser.RIGHT, this, body))
{
return;
return false;
}
if (!this.moves || this.immovable || this.blocked.left || this.touching.left)
@@ -1051,6 +1053,8 @@ Phaser.Physics.Arcade.Body.prototype = {
this.touching.right = true;
body.touching.left = true;
return true;
},
/**