diff --git a/21g30t1e75.js b/21g30t1e75.js index 191950a..93112bf 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -139,7 +139,7 @@ GameLib.CustomCode.SnakeBody = function( this.mesh = mesh; this.applyPositionToMesh(); -}.bind(this); +}; GameLib.CustomCode.SnakeBody.prototype.clone = function() { return new GameLib.CustomCode.SnakeBody( @@ -243,8 +243,18 @@ GameLib.Event.Subscribe( ) this.snake = [ - new GameLib.CustomCode.SnakeBody(GameLib.CustomCode.BODY_TYPE_HEAD), - new GameLib.CustomCode.SnakeBody(GameLib.CustomCode.BODY_TYPE_TAIL) + new GameLib.CustomCode.SnakeBody( + GameLib.CustomCode.BODY_TYPE_HEAD, + null, + null, + this.meshEnd + ), + new GameLib.CustomCode.SnakeBody( + GameLib.CustomCode.BODY_TYPE_TAIL, + null, + null, + this.meshEnd + ) ]; /**