mirror of
https://github.com/photonstorm/phaser
synced 2025-03-01 13:57:26 +00:00
fix for ’jitter’ in scrolling where tilemaps & sprites are one frame off from each other
Fixes #214
This commit is contained in:
parent
a9a46bfbbf
commit
e91d40b9fc
1 changed files with 1 additions and 2 deletions
|
@ -113,8 +113,6 @@ Phaser.World.prototype.update = function () {
|
||||||
*/
|
*/
|
||||||
Phaser.World.prototype.postUpdate = function () {
|
Phaser.World.prototype.postUpdate = function () {
|
||||||
|
|
||||||
this.camera.update();
|
|
||||||
|
|
||||||
if (this.game.stage._stage.first._iNext)
|
if (this.game.stage._stage.first._iNext)
|
||||||
{
|
{
|
||||||
var currentNode = 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)
|
while (currentNode != this.game.stage._stage.last._iNext)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.camera.update();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue