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:
photonstorm
2013-10-11 04:42:11 +01:00
parent a7230aa769
commit b868c2cb1b
72 changed files with 6704 additions and 6454 deletions
+10 -8
View File
@@ -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);
},
/**