Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
my first snake game made in javascript using canvas
JavaScript
tree: b94540e494

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
index.html
readme.markdown
snake.js

readme.markdown

This is my first javascript game. I think the code is pretty clean, I know of some minor bugs but it's pretty good for an afternoon project.

Some cool features, if you take a look at the source code you will notice all it takes is an element with a ID of "score", a canvas element with an id of "snake", width, height, and data-size attributes.

If you adjust width, height, and the block size the speed of the game will adjust accordingly.

Enjoy!

Something went wrong with that request. Please try again.