Snake in HTML5

Yes, it is another post about HTML5 🙂 This time I created a Snake game. All source files you can find here.

Update: SNAKE GAME rewritten with jQuery 1.4.4

About game:

  • every eaten square – 10 points
  • after some score the speed of snake will increase
  • if you will eat yourself or you will hit an edge – game is over 🙂
  • keyboard settings: arrows or w,s,a,d
  • you can pause, resume and restart the game
Screen from the game (actually my high score is 530. My wife is better, her high score is 600 ! :D):
Additionally, in the source files you can find sample usage of QUnit – unit test framework for JavaScript:
Advertisements

One thought on “Snake in HTML5

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s