mirror of
https://github.com/wassname/phaser.git
synced 2026-07-03 17:10:40 +08:00
Fixed the Sprite / World / Group body issue. So invaders now works again, as do the new examples.
This commit is contained in:
@@ -729,7 +729,7 @@ Phaser.Sprite.prototype.postUpdate = function() {
|
||||
{
|
||||
this.body.postUpdate();
|
||||
|
||||
console.log('Sprite postUpdate wt', this.worldTransform[2], this.worldTransform[5], 'xy', this.x, this.y);
|
||||
// console.log('Sprite postUpdate wt', this.worldTransform[2], this.worldTransform[5], 'xy', this.x, this.y);
|
||||
|
||||
// this._cache.x = this.x;
|
||||
// this._cache.y = this.y;
|
||||
@@ -751,7 +751,7 @@ Phaser.Sprite.prototype.postUpdate = function() {
|
||||
this._cache.y = this.y;
|
||||
}
|
||||
|
||||
this.world.setTo(this.game.camera.x + this.worldTransform[2], this.game.camera.y + this.worldTransform[5]);
|
||||
// this.world.setTo(this.game.camera.x + this.worldTransform[2], this.game.camera.y + this.worldTransform[5]);
|
||||
|
||||
this.position.x = this._cache.x;
|
||||
this.position.y = this._cache.y;
|
||||
|
||||
Reference in New Issue
Block a user