Difference between revisions of "Snake - the game"

From JSXGraph Wiki
Jump to navigationJump to search
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 14:59, 8 February 2009