This example MIDlet shows you how to create a game that supports multiple screen resolutions. The MIDlet demonstrates a way of covering practically all screen resolutions in one MIDlet by using a scaling algorithm for the graphics. The MIDlet itself is basically an Arkanoid clone, but with electric frosting.
Figure: Explonoid MIDlet 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 that uses graphics scaling to support multiple screen resolutions.
This MIDlet is provided in two versions:
The regular version is compatible with Series 40 3rd Edition devices and newer.
The Series 40 full touch version is compatible with Series 40 3rd Edition 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 3110 Classic (Series 40 3rd Edition Feature Pack 2)
Nokia 6280 (Series 40 3rd Edition)
Nokia Asha 201 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 X3-02 (Series 40 6th Edition Feature Pack 1)
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:
For earlier versions of the MIDlet, see the .
For possible newer version, other updates or additional documentation, check the Explonoid at Nokia Developer Projects.
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.
com.nokia.example.explonoid
com.nokia.example.explonoid.audio
com.nokia.example.explonoid.effects
com.nokia.example.explonoid.game
com.nokia.example.explonoid.menu
com.nokia.example.explonoid.sensors