diff --git a/snakes.js b/snakes.js index 9c0ef02..da023ba 100644 --- a/snakes.js +++ b/snakes.js @@ -39,7 +39,7 @@ function init(){ //var score=5; //assuming snake is moving right //insertion at head; - // nextHeadX=headX+1; + // this.cells.pop(); //this.cells.unshift({x:nextHeadX,y:headY}); @@ -165,4 +165,4 @@ function getRandomFood(){ init(); //call game loop after t time var z=setInterval(gameloop,130); -//gameloop(); \ No newline at end of file +//gameloop();