Snake Game in JavaScript

To play the game just drag and drop this link to your bookmarks bar or right click and bookmark it and play on any page by just clicking on it.

I have tested this game on Firefox and Chrome.

Update: Now a user can optionally login to the game allowing him to have the following advantages.

  1. Save the game at any point using F2.
  2. Will be able to see his highest score ever on top left corner.

Note: Pls note that the url has changed cause I shifted the game to OpenShift(Its an awesome platform :) ).So you will have to add the bookmarklet again.

Though this code is not written to access any personal information,I want the reader to know that running some random javascript code on a web page can be unsafe cause it gives the code access to your webpage specific client side information. If don't think its safe to run this code just play the game on a page where you are not logged in.

You can read more about bookmarklets and how safe they are, here .


Pause/Resume : Space

Restart : r

Exit : Esc

Save: F2 (Only for logged in User)

and ofcourse the arrow keys.

... Loading comments