Example: Creating a game using the Gesture API

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: Different game views

Prerequisites

You need the following to develop and test this MIDlet:

  • Nokia SDK 1.0 for Java or newer

    Note: The Series 40 full touch version of the MIDlet requires Nokia SDK 2.0 for Java or newer.

  • Series 40 6th Edition FP1 device or newer

For instructions on how to set up the Java ME development environment, see section Setting up the development environment.

Development

For more information about the MIDlet, see:

  • Design for information about the design and functionality of the MIDlet

  • Implementation for information about implementing the MIDlet

You can download the project files for the MIDlet from the download page.