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 = {
|
var CHECKSUM = {
|
||||||
build: 'f8ca0120-3ab1-11e7-be5c-338bdccc3159'
|
build: '673b3ff0-3ab4-11e7-a771-cbff81527fed'
|
||||||
};
|
};
|
||||||
module.exports = CHECKSUM;
|
module.exports = CHECKSUM;
|
|
@ -109,6 +109,7 @@ Tween.prototype = {
|
||||||
|
|
||||||
if (this.countdown <= 0)
|
if (this.countdown <= 0)
|
||||||
{
|
{
|
||||||
|
// Refactor this, so we can use countdown for repeatDelay and onCompleteDelay as well
|
||||||
this.loadValues();
|
this.loadValues();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -128,6 +129,7 @@ Tween.prototype = {
|
||||||
return (this.state !== 5);
|
return (this.state !== 5);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Merge with Backwards and include in update?
|
||||||
forward: function (delta)
|
forward: function (delta)
|
||||||
{
|
{
|
||||||
var elapsed = this.elapsed;
|
var elapsed = this.elapsed;
|
||||||
|
@ -185,7 +187,7 @@ Tween.prototype = {
|
||||||
this.elapsed = elapsed;
|
this.elapsed = elapsed;
|
||||||
this.progress = progress;
|
this.progress = progress;
|
||||||
|
|
||||||
if (progress === 0)
|
if (progress === 1)
|
||||||
{
|
{
|
||||||
// Tween has reached start
|
// Tween has reached start
|
||||||
// Do we yoyo or repeat?
|
// Do we yoyo or repeat?
|
||||||
|
|
Loading…
Reference in a new issue