Snake Game: Implement the snake game using HTML 5 canvas

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 309 All time: 145 This week: 3Up
Version License JavaScript version Categories
snake 1.0BSD License1.0Games
Description Author

This object implements the snake game using HTML 5 canvas.

It can render a snake worm in a canvas object making it grow as it hits food until the game ends for having the snake hit its own body.

The size of the canvas, speed and initial size of the snake and the animal graphics are configurable parameters.

Picture of Daniel Martinez
  Performance   Level  
Name: Daniel Martinez <contact>
Classes: 6 packages by
Country: Spain Spain
Age: 36
All time rank: 191 in Spain Spain
Week rank: 6 Up2 in Spain Spain Down
Innovation award
Innovation award
Nominee: 1x

  • snake.jpg
  Files folder image Files  
File Role Description
Files folder imagebeasts (6 files)
Accessible without login Plain text file example.html Example example of use
Plain text file snake.js Class base class of snake game
Plain text file snake.min.js Class class source minified

  Files folder image Files  /  beasts  
File Role Description
  Accessible without login Image file bird.png Data beast img
  Accessible without login Image file cat.png Data cat img
  Accessible without login Image file dog.png Data dog
  Accessible without login Image file fish.png Data fish
  Accessible without login Image file rabbit.png Data rabbit
  Accessible without login Image file snail.png Data snail

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:145
This week:3Up