aMaze is a 3D maze game for Nokia Asha software platform and Series 40 full touch phones. This Nokia example game demonstrates the use of Mobile 3D Graphics API, gestures, and accelerometer sensor. The concept of the game is classic and simple: guide the marble through the maze by tilting the phone until the time runs out. The gestures utilised in the game are pinch-to-zoom and double tap.
This example application is hosted in GitHub: https://github.com/nokia-developer/amaze
For more information on the implementation, visit Java Developer's Library: http://developer.nokia.com/Resources/Library/Java/#!code-examples/mobile-3d-graphics-amaze.html
- Nokia Asha software platform 1.0 support added.
- Game speed better normalised for phones with different processing capacity.
- Minor performance improvements.
- GameModel and InteractionManager classes removed and their implementation was merged to MazeCanvas.
Some bug fixes.
- The root folder contains the project files, the Application Descriptor file, the license information and this file (release notes).
binariesfolder contains the installable binaries.
resfolder contains the application resources (e.g. graphics assets).
srcfolder contains the application source code.
Note that some files/classes are omitted from the following list.
Main.java: The MIDlet main class.
SplashScreen.java: The splash screen implementation.
SafeGestureInteractiveZone.java: The rectangle where the gestures are recognised.
SafeGestureListener.java: The interface for gesture listeners.
SafeGestureRegistrationManager.java: The intelligent manager for registering gesture listeners.
MarbleModel.java: The model of the marble.
Maze.java: The model of the maze.
MyTimer.java: A generic, easy-to-use timer.
AccelerationProvider.java: The interface that provides accelerometer sensor readings.
AccelerationProviderImpl.java: The actual implementation of the accelerometer sensor readings provider.
CameraAnimator.java: A utility class for camera animations.
DoubleTapDetector.java: Listens to touch events and notifies the listener if a double tap event is detected.
MazeCanvas.java: The game view that ties everything together. The view also acts as the game engine running the main loop. All the touch interaction and command handling is implemented in this class.
Menu.java: A generic menu with support for customisable menu items.
WorldBuilder.java: Contains the methods for creating the game levels.
Note: Some, less meaningful packages and classes omitted.
Compatible with Nokia Asha software platform 1.0 and Series 40 full touch phones. Developed with Nokia Asha SDK 1.0. Tested with Nokia Asha 501, 311 and 306.
- The performance is satisfactory only with Nokia 311.
- Collision detection is not perfect:
- Sometimes the marble gets momentarily stuck on the edges of maze walls.
- Sometimes the marble can pass through maze walls.
- Only partial landscape support implemented.
No sound effects implemented.
Check that you have Nokia Asha SDK 1.0 installed.
You cannot install the application on the device with the IDE, but you can package the application: After you have imported the project, locate the Application Descriptor in the Package Explorer window and open it. Open the Overview tab (by default it is the first tab on the left) and click Create package. Select the destination directory and click Finish.
Connect the phone to the computer with USB cable or Bluetooth. Locate the application binary (.jar file). Copy the file to your phone, locate it and tap to install. With Series 40 phone you can install the file using Nokia Suite: Drag the file from the file explorer on top of the connected phone image in the Nokia Suite window.
After the application is installed, locate the application icon from the application menu and launch the application by selecting the icon.
See the license text file delivered with this project. The license file is also available online at https://github.com/nokia-developer/amaze/blob/master/Licence.txt
Getting started with Mobile 3D Graphics API: http://www.oracle.com/technetwork/systems/3dgraphics-155829.html
- 1.1 Nokia Asha software platform 1.0 optimisation
- 1.0 Initial release