Fixed issue where Animations resuming from a pause would skip frames (thanks @merixstudio, fix #730)

This commit is contained in:
photonstorm 2014-04-28 01:48:46 +01:00
parent 1ef617ca82
commit 3f23b3dc52
3 changed files with 4 additions and 2 deletions

View file

@ -136,6 +136,8 @@ Version 2.0.4 - "Mos Shirare" - in development
* Masks now work when used in RenderTextures / CacheAsBitmap and Filters (pixi.js update)
* Fixed bug where stroked text sometimes got clipped (pixi.js update)
* Fixed Polygon.contains for coordinates to the left of the polygon (thanks @vilcans, fix #766)
* Fixed issue where game pause/resume could incorrectly increment paused Timers (thanks @georgiee, fix #759)
* Fixed issue where Animations resuming from a pause would skip frames (thanks @merixstudio, fix #730)
### ToDo

View file

@ -307,7 +307,7 @@ Phaser.Time.prototype = {
gameResumed: function () {
// Level out the elapsed timer to avoid spikes
this.time = Date.now();
this.time = this.now = Date.now();
this.pauseDuration = this.time - this._pauseStarted;

View file

@ -500,7 +500,7 @@ Phaser.Timer.prototype = {
}
this._pauseTotal += this.game.time.pauseDuration;
this._now = this.game.time.time;
this._now = this.game.time.now;
for (var i = 0; i < this.events.length; i++)
{