Re:Snake Game using jQuery
by IEatShortPeople on Wednesday April 09, 2014 @10:03AM
(#7559311)
There is a bug. If you are traveling right, then quickly press down, release down, then press left, and release left, you will die. This is not snake behavior.
Re:Snake Game using jQuery
by grannyg00se on Wednesday April 09, 2014 @10:40AM
(#7559537)
I found it interesting that it works at all given that it's using td elements as board cells, jQuery to compare dom elements for cell referencing/dereferencing, and setInterval to update the animation and gamer input.
http://waynecrouch.co.uk/jsnake/ (source: https://github.com/wgcrouch/jSnake)