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 optimized and originally designed for the Nokia X3-02 device, which has a touch screen combined with a numeric keypad ("Touch and Type").

Figure: Different views of the game

Prerequisites

You need the following to develop and test this MIDlet:

  • Nokia SDK 1.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.