Canvas Cheat Sheet

HTML5 Canvas Cheat Sheet
HTML5 Canvas Text Font, Size, and Style Tutorial

HTML5 Canvas Snake Game

Discussion

One thing that HTML5 canvas is great for is creating fun and interactive games. Take a look at this code snippet (originally from codepen), that demonstrates how to use canvas to make an old-school game of snake. Take note of how the code for canvas games requires a lot more HTML and CSS than our code snippets normally do.
comments powered by Disqus