Snake in Javascript

This weekend I spent a few hours to write the classic game of Snake in javascript. There are already many versions of Snake available on the web. This was just some fun way to practice javascript. I used YUI 2 for event and dom handling. I have already written a few games in other languages like C++ and Basic during school/college days but this is my first game in Javascript. Will try to write better games in the future probably using HTML5 which can give a much better experience.

The game can be played at http://odhyan.com/snake/

The javascript code can be viewed at http://odhyan.com/snake/snake.js

3 thoughts on “Snake in Javascript

  1. very cool & good js snake game, thank you very much for sharing.

    Can you share this game on my JavaScript library?

    Awaiting your response. Thank

  2. […] looked at some examples that build a snake game in javascript and they seem to move the snake with this […]

  3.   TheaAhh, kanelbollene pÃ¥ Bjørnholt.. *sukk*Den turen skulle jeg vært med pÃ¥! Nordmarka er virkelig et løpeeldorado, i allefall for slike skautroll som meg. Tror og hÃ¥per at skogsmaratonet blir en flott opplevelse!Flotte bilder, som vanlig =)

Leave a Reply

Your email address will not be published. Required fields are marked *