mirror of
https://github.com/wassname/phaser.git
synced 2026-07-05 17:30:19 +08:00
Button fixes and Input coordinate fixes.
This commit is contained in:
+10
-10
@@ -200,25 +200,25 @@ Phaser.Utils.Debug.prototype = {
|
||||
|
||||
showText = showText || false;
|
||||
showBounds = showBounds || false;
|
||||
color = color || 'rgb(255,0,255)';
|
||||
color = color || 'rgb(255,255,255)';
|
||||
|
||||
this.start(0, 0, color);
|
||||
|
||||
if (showBounds)
|
||||
{
|
||||
this.context.strokeStyle = 'rgba(0,255,0,0.8)';
|
||||
this.context.strokeStyle = 'rgba(255,0,0,1)';
|
||||
this.context.strokeRect(sprite.bounds.x, sprite.bounds.y, sprite.bounds.width, sprite.bounds.height);
|
||||
this.context.stroke();
|
||||
}
|
||||
|
||||
this.context.beginPath();
|
||||
this.context.moveTo(sprite.topLeft.x, sprite.topLeft.y);
|
||||
this.context.lineTo(sprite.topRight.x, sprite.topRight.y);
|
||||
this.context.lineTo(sprite.bottomRight.x, sprite.bottomRight.y);
|
||||
this.context.lineTo(sprite.bottomLeft.x, sprite.bottomLeft.y);
|
||||
this.context.closePath();
|
||||
this.context.strokeStyle = 'rgba(0,0,255,0.8)';
|
||||
this.context.stroke();
|
||||
// this.context.beginPath();
|
||||
// this.context.moveTo(sprite.topLeft.x, sprite.topLeft.y);
|
||||
// this.context.lineTo(sprite.topRight.x, sprite.topRight.y);
|
||||
// this.context.lineTo(sprite.bottomRight.x, sprite.bottomRight.y);
|
||||
// this.context.lineTo(sprite.bottomLeft.x, sprite.bottomLeft.y);
|
||||
// this.context.closePath();
|
||||
// this.context.strokeStyle = 'rgba(255,0,0,1)';
|
||||
// this.context.stroke();
|
||||
|
||||
this.renderPoint(sprite.center);
|
||||
this.renderPoint(sprite.topLeft);
|
||||
|
||||
Reference in New Issue
Block a user