Tag Archives: IPhone

PhoneGap Cordova Accelerometer HTML5 Canvas Animation XCode Example

This is a template example using the accelerometer with Cordova or Phonegap and animating a sprite on the HTML5 canvas. I was working on a game using the html canvas and the accelerometer. I developed a way to combine both in IOS using Objective C and the UIWebView in the UIKit. That approach limits distribution to the IOS platform but allows you to have all of the native UI items like screen navigation and just use the canvas for animations.