A nice little tutorial, Learning Canvas: Making a Snake Game, uses jsFiddle to walk you through demonstrations of creating a game on an HTML5 canvas.

Been looking for a fun little intro to creating JavaScript games with the canvas element? Here’s a great little tutorial by Chris Coyier which takes you through the steps of creating a game loop, setting up the actors, and using JavaScript namespaces to keep functionality nicely sorted. The final result is a little game of Snake:

The tutorial uses jsFiddle so you can view the code and run the example at every step. Great job, Chris!

See: Learning Canvas: Making a Snake Game

Tagged with:
 
About The Author

Ian

Ian Langworth has been making web sites since before HTML had tables and Photoshop had layers. He wanted a single place to go for news and information related specifically to HTML5 and game development, but one didn't exist, so he started the HTML5 Grind.

Comments are closed.