Touch UI - Racer

Description

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 Series 40 platform.

This MIDlet is targeted for Series 40 touch and type and Series 40 full touch devices.

Figure: Racer running on a Series 40 full touch device

For a tutorial that shows you how to create this MIDlet, see section Example: Creating a game using the Gesture API.

Compatibility

This MIDlet is provided in two versions:

  • The regular version is compatible with Series 40 6th Edition Feature Pack 1 devices and newer.

  • The Series 40 full touch version is compatible with Series 40 6th Edition Feature Pack 1 devices and newer, but the Series 40 full touch features are only available on Series 40 full touch devices with Java Runtime 2.0.0 for Series 40 or newer.

This MIDlet has been tested on the following devices:

  • Nokia Asha 303 on Nokia Asha software platform (Java Runtime 1.1.0 for Series 40)

  • Nokia Asha 306 on Nokia Asha software platform (Java Runtime 2.0.0 for Series 40)

  • Nokia Asha 311 on Nokia Asha software platform (Java Runtime 2.0.0 for Series 40)

  • Nokia C2-03 (Java Runtime 1.0.0 for Series 40)

  • Nokia X3-02 (Series 40 6th Edition Feature Pack 1)

MIDlet project

The MIDlet project files are packaged as a zip file. The zip file includes two projects: the regular version and the Series 40 full touch version. To download the zip file, click the following link:

Download Racer

Table: MIDlet details (regular version)

MIDlet version

1.0

Creation date

29 September 2011

IDE

Nokia IDE for Java ME (Eclipse) and NetBeans

SDK

Nokia SDK 1.0 for Java

Table: MIDlet details (Series 40 full touch version)

MIDlet version

1.1.0

Creation date

21 June 2012

IDE

Nokia IDE for Java ME (Eclipse) and NetBeans

SDK

Nokia SDK 2.0 for Java

For possible newer version, other updates or additional documentation, check the Racer at Nokia Developer Projects.

MIDlet classes

The MIDlet consists of the following packages and classes (click to view the full source code):

Note: 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.