This example MIDlet shows you how to use the Gesture API to implement touch interaction in a game application. This example also covers some key points to consider when developing a game for the Nokia Asha software platform and Series 40 platform.
This MIDlet is targeted for Nokia touch and type and full touch devices.
Figure: Racer running on a Nokia Asha software platform device
For a tutorial that shows you how to create this MIDlet, see section Example: Creating a game using the Gesture API.
Compatible with Nokia Asha software platform 1.0 and Series 40 touch and type and full touch phones
The MIDlet project files are packaged as a zip file. To download the zip file, click the following link:
MIDlet version |
1.2 |
Creation date |
9 May 2013 |
IDE |
Nokia IDE for Java ME (Eclipse) and NetBeans |
SDK |
Nokia Asha SDK 1.0 |
For possible newer version, other updates or additional documentation, check the Racer at Nokia Developer Projects.
The MIDlet consists of the following packages and classes (click to view the full source code):
The source code is from the Series 40 full touch version of the MIDlet. To view the source code of the regular version, see the source code files in the zip file.
com.nokia.example.racer
com.nokia.example.racer.gestures
com.nokia.example.racer.helpers
com.nokia.example.racer.sensor
com.nokia.example.racer.views
com.nokia.example.racer.views.components
com.nokia.example.racer.views.tracks