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 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!
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:
-
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
-
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:
-
Remove the following files:
./_server/games-played.js ./_server/supervisord.conf ./public_html/js/playcount.##########.js
-
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>"
- Maps
- Bonus foods
- Alternative phone backgrounds
- Full-screen
- Client-side High-scores
- Full-game replay
- 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.