mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 23:20:59 +00:00
Fixed code formatting.
This commit is contained in:
parent
129a652f07
commit
bfb12d9dba
2 changed files with 17 additions and 16 deletions
|
@ -244,15 +244,17 @@ Phaser.Animation.prototype = {
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reverses the animation direction
|
* Reverses the animation direction.
|
||||||
*
|
*
|
||||||
* @method Phaser.Animation#reverse
|
* @method Phaser.Animation#reverse
|
||||||
* @return {Phaser.Animation} The animation instance.
|
* @return {Phaser.Animation} The animation instance.
|
||||||
* */
|
*/
|
||||||
reverse: function () {
|
reverse: function () {
|
||||||
|
|
||||||
this.reversed = !this.reversed;
|
this.reversed = !this.reversed;
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -262,11 +264,13 @@ Phaser.Animation.prototype = {
|
||||||
*
|
*
|
||||||
* @method Phaser.Animation#reverseOnce
|
* @method Phaser.Animation#reverseOnce
|
||||||
* @return {Phaser.Animation} The animation instance.
|
* @return {Phaser.Animation} The animation instance.
|
||||||
* */
|
*/
|
||||||
reverseOnce: function () {
|
reverseOnce: function () {
|
||||||
this.onComplete.addOnce(this.reverse.bind(this));
|
|
||||||
|
this.onComplete.addOnce(this.reverse, this);
|
||||||
|
|
||||||
return this.reverse();
|
return this.reverse();
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -207,9 +207,6 @@ Phaser.AnimationManager.prototype = {
|
||||||
|
|
||||||
this.currentAnim = this._anims[name];
|
this.currentAnim = this._anims[name];
|
||||||
|
|
||||||
// This shouldn't be set until the Animation is played, surely?
|
|
||||||
// this.currentFrame = this.currentAnim.currentFrame;
|
|
||||||
|
|
||||||
if (this.sprite.tilingTexture)
|
if (this.sprite.tilingTexture)
|
||||||
{
|
{
|
||||||
this.sprite.refreshTexture = true;
|
this.sprite.refreshTexture = true;
|
||||||
|
|
Loading…
Reference in a new issue