Snake - the game: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 64: | Line 64: | ||
alert('Game over'); | alert('Game over'); | ||
} else { | } else { | ||
if (x==point.X() | if (x==point.X()) if (y==point.Y()) { | ||
snake.newSize += 5; | snake.newSize += 5; | ||
snake.speed -= 10; | snake.speed -= 10; |
Revision as of 13:56, 8 February 2009