diff --git a/21g30t1e75.js b/21g30t1e75.js index 39e6f79..548634c 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -949,26 +949,25 @@ GameLib.Event.Subscribe( this.initializeGrid(); - this.snake = [ - this.createGameObject( - GameLib.CustomCode.OBJECT_TYPE_SNAKE_BODY, - GameLib.CustomCode.BODY_TYPE_BREAD_HEAD, - { - x : 4, - y : 4 - }, - GameLib.CustomCode.ORIENTATION_UP - ), - this.createGameObject( - GameLib.CustomCode.OBJECT_TYPE_SNAKE_BODY, - GameLib.CustomCode.BODY_TYPE_BREAD_HEAD, - { - x : 4, - y : 3 - }, - GameLib.CustomCode.ORIENTATION_UP - ) - ]; + this.createGameObject( + GameLib.CustomCode.OBJECT_TYPE_SNAKE_BODY, + GameLib.CustomCode.BODY_TYPE_BREAD_HEAD, + { + x : 4, + y : 4 + }, + GameLib.CustomCode.ORIENTATION_UP + ); + + this.createGameObject( + GameLib.CustomCode.OBJECT_TYPE_SNAKE_BODY, + GameLib.CustomCode.BODY_TYPE_BREAD_TAIL, + { + x : 4, + y : 3 + }, + GameLib.CustomCode.ORIENTATION_UP + ); //this.visualizeGrid();