Book Image

Canvas Cookbook

Book Image

Canvas Cookbook

Overview of this book

With the growing popularity of HTML5 Canvas, this book offers tailored recipes to help you develop portable applications, presentations, and games. The recipes are simple yet creative and build on each other. At every step, the book inspires the reader to develop his/her own recipe. From basic to advanced, every aspect of Canvas API has been covered to guide readers to develop their own application, presentation, or game.
Table of Contents (16 chapters)
Canvas Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Introduction


Phaser 2.4.4 is the library I have used for game development. The site http://phaser.io/ on its home page, under the Developer Support link, clearly says We live and breathe HTML5 games. Phaser is one of the good choices for HTML5 game development. This chapter is an attempt to inspire readers to develop their own games.

Note

I enabled WebGL 2.0 prototype in the chrome://flags. You need to enable this feature on your browser, so as to execute the given recipes.