HTML5 Snake
xarg.org
HTML5 Snake
1–10 of 16 posts
Re: HTML5 Snake
#2You should also use requestAnimationFrame instead of setInterval.
http://paulirish.com/2011/requestanimationframe-for-smart-animating/Re: HTML5 Snake
#3That's fun! It runs pretty fast, though. You might want to have it start a bit slower. You should also use requestAnimationFrame instead of setInterval. http://paulirish.com/2011/requestanimationframe-for-smart-animating/
Re: HTML5 Snake
#4Great game.
Re: HTML5 Snake
#5Seems like an elegant implementation.
Re: HTML5 Snake
#6Re: HTML5 Snake
#7Re: HTML5 Snake
#8That's fun! It runs pretty fast, though. You might want to have it start a bit slower. You should also use requestAnimationFrame instead of setInterval. http://paulirish.com/2011/requestanimationframe-for-smart-animating/
Might also be nice to have a 'Start Game' button--I clicked the link and then got a dialog about losing. Blocks on the edges are also a little hard to get at. Nice job! Fun too. :)
Re: HTML5 Snake
#9Re: HTML5 Snake
#10BTW the javascript alert shows up on a different monitor in my dual-head setup.