Skip to content

Commit

Permalink
fixed part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
knagaitsev committed Jul 5, 2017
1 parent e54c5b5 commit 440518e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions part-2/src/snake.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,6 @@ Snake.prototype = {
this.scale = scale;
this.preferredDistance = 17 * this.scale;

//update edge lock location with p2 physics
this.edgeLock.localOffsetB = [
0, this.game.physics.p2.pxmi(this.head.width*0.5+this.edgeOffset)
];

//scale sections and their bodies
for (var i = 0 ; i < this.sections.length ; i++) {
var sec = this.sections[i];
Expand Down

0 comments on commit 440518e

Please sign in to comment.