fix for ’jitter’ in scrolling where tilemaps & sprites are one frame off from each other

Fixes #214
This commit is contained in:
Josh Shepard (jcs) 2013-11-27 16:25:20 -08:00
parent a9a46bfbbf
commit e91d40b9fc

View file

@ -113,8 +113,6 @@ Phaser.World.prototype.update = function () {
*/
Phaser.World.prototype.postUpdate = function () {
this.camera.update();
if (this.game.stage._stage.first._iNext)
{
var currentNode = this.game.stage._stage.first._iNext;
@ -131,6 +129,7 @@ Phaser.World.prototype.postUpdate = function () {
while (currentNode != this.game.stage._stage.last._iNext)
}
this.camera.update();
}
/**