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:
photonstorm
2014-03-03 00:46:03 +00:00
parent 418a161b46
commit c4a68e3e87
5 changed files with 192 additions and 325 deletions
-9
View File
@@ -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;
}