mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +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
|
||||
* @return {Phaser.Animation} The animation instance.
|
||||
* */
|
||||
*/
|
||||
reverse: function () {
|
||||
|
||||
this.reversed = !this.reversed;
|
||||
|
||||
return this;
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -262,11 +264,13 @@ Phaser.Animation.prototype = {
|
|||
*
|
||||
* @method Phaser.Animation#reverseOnce
|
||||
* @return {Phaser.Animation} The animation instance.
|
||||
* */
|
||||
*/
|
||||
reverseOnce: function () {
|
||||
this.onComplete.addOnce(this.reverse.bind(this));
|
||||
|
||||
this.onComplete.addOnce(this.reverse, this);
|
||||
|
||||
return this.reverse();
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -207,9 +207,6 @@ Phaser.AnimationManager.prototype = {
|
|||
|
||||
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)
|
||||
{
|
||||
this.sprite.refreshTexture = true;
|
||||
|
|
Loading…
Reference in a new issue