mirror of
https://github.com/wassname/phaser.git
synced 2026-07-18 12:30:44 +08:00
Added Game Update loop step debugging - has proved utterly invaluable! Resolved camera jitter issues, gravity / downward force on tile/boundary issues and most tilemap collision issues.
This commit is contained in:
+3
-2
@@ -640,9 +640,10 @@ Phaser.Utils.Debug.prototype = {
|
||||
color = color || 'rgb(255, 255, 255)';
|
||||
|
||||
this.start(0, 0, color);
|
||||
this.context.lineWidth = 1;
|
||||
this.context.beginPath();
|
||||
this.context.moveTo(line.start.x, line.start.y);
|
||||
this.context.lineTo(line.end.x, line.end.y);
|
||||
this.context.moveTo(line.start.x + 0.5, line.start.y + 0.5);
|
||||
this.context.lineTo(line.end.x + 0.5, line.end.y + 0.5);
|
||||
this.context.closePath();
|
||||
this.context.stroke();
|
||||
this.stop();
|
||||
|
||||
Reference in New Issue
Block a user