I made the game Snake in JavaScript. It plays well on both PC and mobile browsers. Give it a shot! snake.nylira.com

Snake gameplay

Yes, I lost this game in order to show you a screenshot.

Controls

There are multiple control schemes in place so you can play it however you want. For mobile, you may either tap the on screen buttons or swipe in any direction. For PC, you have the added options of WASD and arrow keys.

High Scores

Your high scores are persisted through your browser's localStorage. This means that this game is a purely client-side application, and can be played offline without the internet.

Libraries

I made great use out of the following JavaScript libraries:

Source

The source code for my Snake implementation is available on GitHub at github.com/nylira/snake. Feel free to take a look!

And if you want to play it, go here: snake.nylira.com