mirror of
https://github.com/wassname/phaser.git
synced 2026-06-27 16:10:15 +08:00
Merge pull request #233 from jcd-as/dev
fix for ’jitter’ in scrolling where tilemaps & sprites are one frame off...
This commit is contained in:
+1
-2
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user