A primer for creating canvas games with input and an animation loop.