Skip to content
HTML5 - Play the classic game, Snake, in your web-browser!
JavaScript HTML Nginx CSS
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.

By Chris Morris.

An HTML5 remake of the classic game, Snake!


Upon reading how to create platform games in HTML5, I decided to have some fun and re-create one of the all-time favourites, Snake! My sister, Yvette, suggested the domain name Since the suggestion, there has been a strong movement to move the game to, but I'm not having any of it!


The basic core of 5nake runs fine without anything special, simply clone the git.

If, however, you want to make use of the play counter, do the following:

  1. Clone into a directory of your choosing and run npm install

    git clone
    npm install
  2. Update the following files to reflect your settings:


If you don't want to make use of the play counter:

  1. Remove the following files:

  2. Edit the following files:

    ./public_html/js/5nake.1.#.###.js - follow the instructions within the endGame() function
    ./public_html/index.html - remove the line "<script src="js/playcount.##########.js" type="text/javascript"></script>"

Coming Soon

  • Maps
  • Bonus foods
  • Alternative phone backgrounds
  • Full-screen
  • Client-side High-scores
  • Full-game replay

Latest Update

v1.1.205 (2013-Feb-03)

  • Updated Nginx config to strip www. from URL's.
  • Added Google Chrome App link in metadata - further implementation to come.

A complete history of updates to the game can be found on the Version History page in the Wiki.

You can’t perform that action at this time.