mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
Fixed issue where Animations resuming from a pause would skip frames (thanks @merixstudio, fix #730)
This commit is contained in:
parent
1ef617ca82
commit
3f23b3dc52
3 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue