mirror of
https://github.com/wassname/phaser.git
synced 2026-07-04 17:20:31 +08:00
New lineIntersectLine() function working nicely.
This commit is contained in:
@@ -925,6 +925,10 @@ Phaser.Utils.Debug.prototype = {
|
||||
this.context.arc(x, y, body.shape.r, 0, Math.PI * 2, false);
|
||||
this.context.stroke();
|
||||
this.context.closePath();
|
||||
|
||||
this.context.strokeStyle = 'rgb(0,0,255)';
|
||||
this.context.strokeRect(body.left, body.top, body.width, body.height);
|
||||
|
||||
this.stop();
|
||||
}
|
||||
else
|
||||
@@ -953,6 +957,9 @@ Phaser.Utils.Debug.prototype = {
|
||||
this.context.fillRect(x + points[i].x - 2, y + points[i].y - 2, 5, 5);
|
||||
}
|
||||
|
||||
this.context.strokeStyle = 'rgb(0,0,255)';
|
||||
this.context.strokeRect(body.left, body.top, body.width, body.height);
|
||||
|
||||
this.stop();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user