HTML5 Canvas Snake Game
Description
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.