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
Permalink
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
README.md 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

README.md

5nake.com

By Chris Morris.

An HTML5 remake of the classic game, Snake!

Background

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 5nake.com. Since the suggestion, there has been a strong movement to move the game to yvette.com, but I'm not having any of it!

Deployment

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 https://github.com/ChrisMorrisOrg/5nake.git 5nake.com
    cd 5nake.com
    npm install
    
  2. Update the following files to reflect your settings:

    ./nginx.conf
    ./_server/games-played.js
    ./_server/supervisord.conf
    

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

  1. Remove the following files:

    ./_server/games-played.js
    ./_server/supervisord.conf
    ./public_html/js/playcount.##########.js
    
  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.