HTML5 - Play the classic game, Snake, in your web-browser!
JavaScript HTML Nginx CSS
Switch branches/tags
Nothing to show
Clone or download
Latest commit 7e90a88 Mar 3, 2017
Failed to load latest commit information.
_server Javascript cleanup Mar 1, 2017
public_html Javascript cleanup Mar 1, 2017
.travis.yml Added travis Mar 3, 2017 v1.1.205 Feb 3, 2013
nginx.conf v1.1.205 Feb 3, 2013
package.json Javascript cleanup Mar 1, 2017
schema.sql v1.1.203 Feb 2, 2013

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.