This example MIDlet shows you how to use the Game API to create a Java game called Battle Tank for Series 40 and Symbian devices. The example also shows you how to use the In-App Purchase API to integrate a Nokia Store purchasing feature into a Series 40 MIDlet. While the gaming features in this example are compliant with both Series 40 and Symbian, the in-app purchase feature is only available on Series 40 devices and therefore the MIDlet as a whole can only be run on Series 40 devices that support the In-App Purchase API. For an earlier version of the MIDlet that does not include the in-app purchase feature, see the Nokia Developer Project.
Figure: Battle Tank in-game view
You need the following to develop and test this MIDlet:
Nokia SDK 1.0 for Java or newer
Series 40 device with Java Runtime 1.0.0 for Series 40 or newer
For instructions on how to set up the Java ME development environment, see section Setting up the development environment.
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.