@@ -1426,10 +1426,22 @@ var Body = new Class({
14261426 {
14271427 //graphic.strokeRect(pos.x, pos.y, this.width, this.height);
14281428 // only draw the sides where checkCollision is true, similar to debugger in layer
1429- if ( this . checkCollision . up ) { graphic . lineBetween ( pos . x , pos . y , pos . x + this . width , pos . y ) ; }
1430- if ( this . checkCollision . right ) { graphic . lineBetween ( pos . x + this . width , pos . y , pos . x + this . width , pos . y + this . height ) ; }
1431- if ( this . checkCollision . down ) { graphic . lineBetween ( pos . x , pos . y + this . height , pos . x + this . width , pos . y + this . height ) ; }
1432- if ( this . checkCollision . left ) { graphic . lineBetween ( pos . x , pos . y , pos . x , pos . y + this . height ) ; }
1429+ if ( this . checkCollision . up )
1430+ {
1431+ graphic . lineBetween ( pos . x , pos . y , pos . x + this . width , pos . y ) ;
1432+ }
1433+ if ( this . checkCollision . right )
1434+ {
1435+ graphic . lineBetween ( pos . x + this . width , pos . y , pos . x + this . width , pos . y + this . height ) ;
1436+ }
1437+ if ( this . checkCollision . down )
1438+ {
1439+ graphic . lineBetween ( pos . x , pos . y + this . height , pos . x + this . width , pos . y + this . height ) ;
1440+ }
1441+ if ( this . checkCollision . left )
1442+ {
1443+ graphic . lineBetween ( pos . x , pos . y , pos . x , pos . y + this . height ) ;
1444+ }
14331445 }
14341446 }
14351447
0 commit comments