Pitfalls to look out for when writing a canvas game for Android devices

Recently a client approached Metal Toad to develop a prototype game for Android devices and leaving the option of porting it to other devices open. We decided to develop the game using HTML5's canvas element and wrap it in phonegap to bring it to Android devices. In this post I'll talk about the major pitfalls I encountered while working on the project and provide you with some points to keep in mind while developing canvas games for mobile devices.

HTML5 canvas resources for beginners

HTML5’s <canvas> element is one of the large driving forces behind my excitement for HTML5 development. Canvas provides a wonderful way to add extra shine and glitz to your HTML5 application beyond what JavaScript can provide via animations and events. Prior to HTML5, the solution to providing that extra glitz was to embed an Adobe Flash or Microsoft Silverlight object into your application. Now there is a non-proprietary solution: HTML5’s canvas. However, not every web developer is currently familiar with canvas. To help those who are unfamiliar, I’ve gathered a few handy links to help those interested in working with the canvas element.

Ready for transformation?