123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- MIDP: Battle Tank
- ========================
- This application demonstrates usage of Java ME gaming features: sprites, tiles
- etc. Additionally, a reusable game structure is introduced where resources are
- loaded according to the screen size of device. In the game player's objective
- is to defend base and destroy all enemy tanks.
- -------------------------------------------------------------------------------
- PREREQUISITES
- Java ME basics
- Java ME threads and timers
- -------------------------------------------------------------------------------
- IMPORTANT FILES AND CLASSES
- src\..\BattleTankCanvas.java
- src\..\Game.java
- src\..\Resources.java
- src\..\Level.java
- Classes: GameCanvas, Vector, Graphics, Image, Sprite, TiledLayer.
- -------------------------------------------------------------------------------
- DESIGN CONSIDERATIONS
- The game separates UI rendering and updating game logic to separate threads to
- make sure handling events is smooth. The threads are paused when a screensaver
- starts, there is a incoming call, or so on, to prevent excess power consumption.
- Image resources are pre-scaled for three different resolutions: high
- (360x640), medium (240x320) and low (128x160).
- The state of the game is stored when user closes the application. User can
- resume to the saved state when returning to play again.
- -------------------------------------------------------------------------------
- KNOWN ISSUES
- Mixing sounds does not work with Symbian phones.
- -------------------------------------------------------------------------------
- BUILD AND INSTALLATION INSTRUCTIONS
- The example has been made with NetBeans 6.9.1 and Series 40 6th Edition, FP1
- SDK. The project can be easily opened in NetBeans by selecting 'Open Project'
- from the File menu and selecting the application.
- Before opening the project, make sure the Series 40 6th Edition, FP1 SDK is
- installed and added to NetBeans. Building is done by selecting 'Build main
- project'.
- Installing the application on a phone can be done by transfering the JAR file
- via Nokia Ovi Suite or via Bluetooth.
- -------------------------------------------------------------------------------
- RUNNING THE EXAMPLE
- From the menu, the player can resume to the latest game, start a new game,
- set sounds on/off and exit the game.
- Player's objective is to destroy all enemy tanks and not let them destroy the
- base. Player can collect various bonus items which have different effects: make
- player's tank indestructible for short time, destroy all enemy tanks etc.
- The top bar shows the number of player's tanks, current score points and
- enemies left in the current level. The menu button is in the bottom-right
- corner.
- -------------------------------------------------------------------------------
- COMPATIBILITY
- All Series 40 and Symbian platforms with CLDC 1.1, MIDP 2.0 and Mobile Media
- API (JSR-135)
- Tested on:
- 3110 classic
- X3 Touch and Type (X3-02)
- Developed with:
- Netbeans 6.9.1
- Series 40 6th Edition, FP1 SDK
- -------------------------------------------------------------------------------
- CHANGE HISTORY
- 1.0 First release
|