Snake - the game: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 48: Line 48:
         else if (code==40) { snake.dir = [0,-1]; }
         else if (code==40) { snake.dir = [0,-1]; }
     }
     }
     document.onkeydown = keyDown;
     document.getElementById('box').onkeydown = keyDown;


     var crawl = function() {
     var crawl = function() {

Revision as of 13:59, 8 February 2009