Skip to content

Commit 5dcd844

Browse files
committed
Added world blocked debug color
1 parent 87e9f8e commit 5dcd844

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/physics/arcade/Body.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1749,7 +1749,7 @@ var Body = new Class({
17491749
var x = pos.x + this.halfWidth;
17501750
var y = pos.y + this.halfHeight;
17511751

1752-
var worldBlockedColor = 0xffff00;
1752+
var worldBlockedColor = this.world.defaults.worldBlockedDebugColor;
17531753
var blockedColor = this.world.defaults.blockedDebugColor;
17541754
var sleepColor = this.world.defaults.sleepDebugColor;
17551755

src/physics/arcade/World.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,9 @@ var World = new Class({
300300
bodyDebugColor: GetValue(config, 'debugBodyColor', 0xff00ff),
301301
staticBodyDebugColor: GetValue(config, 'debugStaticBodyColor', 0x0000ff),
302302
velocityDebugColor: GetValue(config, 'debugVelocityColor', 0x00ff00),
303-
sleepDebugColor: GetValue(config, 'debugSleepColor', 0xffffff),
304-
blockedDebugColor: GetValue(config, 'debugBlockedColor', 0xff0000)
303+
sleepDebugColor: GetValue(config, 'debugSleepColor', 0x8d8d8d),
304+
blockedDebugColor: GetValue(config, 'debugBlockedColor', 0xff0000),
305+
worldBlockedDebugColor: GetValue(config, 'debugWorldBlockedColor', 0xffff00)
305306
};
306307

307308
/**

0 commit comments

Comments
 (0)