Example: Creating a game with Game API

This is a tank game created with Java ME. It demonstrates the usage of gaming features in Java ME such as sprites, tiles and collision detection. In the game the player's objective is to defend the base and destroy all enemy tanks.

Figure: BattleTank MIDlet running on a Nokia Asha software platform device

Prerequisites

You need the following to develop and test this MIDlet:

  • Nokia Asha SDK 1.0

  • Nokia Asha software platform 1.0 or Series 40 phone with CLDC 1.1, MIDP 2.1 APIs

Development

For instructions on how to get started with Java ME, see section Getting started.

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.