mirror of
https://github.com/wassname/phaser.git
synced 2026-07-23 13:00:41 +08:00
Started revamp of the Tilemap system. Also removed old 'Advanced Physics' and dropped in p2.js which is what I hope we'll eventually use.
This commit is contained in:
+10
-8
@@ -203,13 +203,14 @@ Phaser.Tween.prototype = {
|
||||
if (this._parent)
|
||||
{
|
||||
self = this._manager.create(this._object);
|
||||
self._parent = this._parent;
|
||||
this.chain(self);
|
||||
this._lastChild.chain(self);
|
||||
this._lastChild = self;
|
||||
}
|
||||
else
|
||||
{
|
||||
self = this;
|
||||
self._parent = self;
|
||||
this._parent = this;
|
||||
this._lastChild = this;
|
||||
}
|
||||
|
||||
self._repeat = repeat;
|
||||
@@ -229,9 +230,9 @@ Phaser.Tween.prototype = {
|
||||
self._yoyo = yoyo;
|
||||
|
||||
if (autoStart) {
|
||||
return self.start();
|
||||
return this.start();
|
||||
} else {
|
||||
return self;
|
||||
return this;
|
||||
}
|
||||
|
||||
},
|
||||
@@ -399,11 +400,11 @@ Phaser.Tween.prototype = {
|
||||
* .to({ y: 0 }, 1000, Phaser.Easing.Linear.None)
|
||||
* .loop();
|
||||
* @method Phaser.Tween#loop
|
||||
* @return {Tween} Itself.
|
||||
* @return {Phaser.Tween} Itself.
|
||||
*/
|
||||
loop: function() {
|
||||
|
||||
if (this._parent) this.chain(this._parent);
|
||||
this._lastChild.chain(this);
|
||||
return this;
|
||||
|
||||
},
|
||||
@@ -457,6 +458,7 @@ Phaser.Tween.prototype = {
|
||||
*/
|
||||
pause: function () {
|
||||
this._paused = true;
|
||||
this._pausedTime = this.game.time.now;
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -466,7 +468,7 @@ Phaser.Tween.prototype = {
|
||||
*/
|
||||
resume: function () {
|
||||
this._paused = false;
|
||||
this._startTime += this.game.time.pauseDuration;
|
||||
this._startTime += (this.game.time.now - this._pausedTime);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user