Difference between revisions of "Snake - the game"

From JSXGraph Wiki
Jump to navigationJump to search
Line 64: Line 64:
 
             alert('Game over');
 
             alert('Game over');
 
         } else {
 
         } else {
             if (x==point.X() && y==point.Y()) {
+
             if (x==point.X()) if (y==point.Y()) {
 
                 snake.newSize += 5;
 
                 snake.newSize += 5;
 
                 snake.speed -= 10;
 
                 snake.speed -= 10;

Revision as of 14:56, 8 February 2009