Sprite bounds finally correct, regardless of rotation, parenting, scale or anchor.

This commit is contained in:
photonstorm
2013-10-25 03:49:14 +01:00
parent 1469663ea5
commit 427819c655
3 changed files with 50 additions and 131 deletions
+4 -4
View File
@@ -221,10 +221,10 @@ Phaser.Utils.Debug.prototype = {
// this.context.stroke();
this.renderPoint(sprite.center);
this.renderPoint(sprite.topLeft);
this.renderPoint(sprite.topRight);
this.renderPoint(sprite.bottomLeft);
this.renderPoint(sprite.bottomRight);
this.renderPoint(sprite.topLeft, 'rgb(255,255,0)');
this.renderPoint(sprite.topRight, 'rgb(255,0,0)');
this.renderPoint(sprite.bottomLeft, 'rgb(0,0,255)');
this.renderPoint(sprite.bottomRight, 'rgb(255,255,255)');
if (showText)
{