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.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_server
public_html
.travis.yml
README.md
nginx.conf
package.json
schema.sql

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.

You can’t perform that action at this time.