mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 13:13:43 +00:00
Repeat and Yoyo combo work.
This commit is contained in:
parent
6b66b855f5
commit
9f651da573
2 changed files with 4 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
var CHECKSUM = {
|
||||
build: 'f8ca0120-3ab1-11e7-be5c-338bdccc3159'
|
||||
build: '673b3ff0-3ab4-11e7-a771-cbff81527fed'
|
||||
};
|
||||
module.exports = CHECKSUM;
|
|
@ -109,6 +109,7 @@ Tween.prototype = {
|
|||
|
||||
if (this.countdown <= 0)
|
||||
{
|
||||
// Refactor this, so we can use countdown for repeatDelay and onCompleteDelay as well
|
||||
this.loadValues();
|
||||
}
|
||||
}
|
||||
|
@ -128,6 +129,7 @@ Tween.prototype = {
|
|||
return (this.state !== 5);
|
||||
},
|
||||
|
||||
// Merge with Backwards and include in update?
|
||||
forward: function (delta)
|
||||
{
|
||||
var elapsed = this.elapsed;
|
||||
|
@ -185,7 +187,7 @@ Tween.prototype = {
|
|||
this.elapsed = elapsed;
|
||||
this.progress = progress;
|
||||
|
||||
if (progress === 0)
|
||||
if (progress === 1)
|
||||
{
|
||||
// Tween has reached start
|
||||
// Do we yoyo or repeat?
|
||||
|
|
Loading…
Reference in a new issue