This article explains how to write a simple and fun game using the Sensor API and Gesture API.
The article demonstrates the Gesture API and Sensor API using the context of a simple game called Whack-A-Bunny, that runs on Series 40 Full Touch devices. To play the game the users shakes the phone vertically (up/down). After shaking the phone a bunny will appear from a random hole – tap the bunny before it disappears to get points. The main game screens are shown below.
This article has been awarded a grand prize under the Asha Touch Competition 2012Q3.