The HTML5 canvas element provides web browsers with a powerful tool for drawing and manipulating pixels on the screen. By manipulating subpaths on the canvas, you can draw simple and complex shapes and manipulate their appearance. You can move objects about the canvas with simple (and not so simple) algorithms that simulate (or defy) the laws of physics as well as hook up movements of objects in the canvas to execute keyboard commands. By leveraging the power of the HTML5 canvas element, you can also open your application up to mobile devices without a wholesale rewrite of your codebase.

In the next chapter I get into the design process for a project. Effective planning can make all the difference in the success of a project, and having ...

Get Beginning Facebook Game Apps Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.