Snake Game In JavaScript (using d3.js)

Screen Shot 2014-08-24 at 6.29.07 PM

This weekend I decided to make a snake game in JavaScript. It is a simple javascript game made using d3.js. The links to the completed game and the source code is given below:

This game differs from the classic snake game in a few ways:

  • The snake starts off with a specific number of lives.
  • It looses a life if it fail to eat a fruit before it disappears.
  • It gain one life (upto a maximum) for every fruit it consumes (in addition to getting longer).
  • There are different types of fruits that are worth different points and disappear after different time.