diff --git a/21g30t1e75.js b/21g30t1e75.js index 8a8987c..fca9bdb 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -245,17 +245,17 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) { if (index === 0) { - backup = { + body.advance( + this.state.orientation + ); + + backup = { position : { x : body.position.x, y : body.position.y }, orientation : body.orientation } - - body.advance( - this.state.orientation - ); } if (index > 0) {