mirror of
https://github.com/wassname/phaser.git
synced 2026-07-09 00:20:17 +08:00
The Debug panel now works in WebGL mode. Pay attention to the warning at the top of the Debug docs (feature request #499)
All the Debug methods have had the word 'render' removed from the start. So where you did `debug.renderSpriteInfo` before, it's now just `debug.spriteInfo`. Debug methods that rendered geometry (Rectangle, Circle, Line, Point) have been merged into the single method: `Debug.geom`.
This commit is contained in:
@@ -186,15 +186,6 @@ Phaser.Sprite.prototype.preUpdate = function() {
|
||||
this._cache[1] = this.world.y;
|
||||
this._cache[2] = this.rotation;
|
||||
this._cache[4] = 0;
|
||||
|
||||
// if (this.body)
|
||||
// {
|
||||
// this.body.x = (this.world.x - (this.anchor.x * this.width)) + this.body.offset.x;
|
||||
// this.body.y = (this.world.y - (this.anchor.y * this.height)) + this.body.offset.y;
|
||||
// this.body.preX = this.body.x;
|
||||
// this.body.preY = this.body.y;
|
||||
// }
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user