March 13, 2007

[J2ME] Mobile Game Development in J2ME

To develop a mobile game in J2ME, there are few things that you always concern about which are:

- Speed (Execution speed of the chipset)
- Memory (Heap size memory)
- Jar size (Jar size of your game)
- RMS (Record Management System, which allows you to save your game data)
- Screen Size (different screen size in different mobile phone)

Although your good friend Progard helps you to shrink, optimize, and obfuscate your code, it can't do everything for you. You still need to have a good program structure for your game, and good programming skill to develop a robust and killer mobile game within this limited enviornment. This is a challenge.

Additional things that you have to know:
- MIDP
- CLDC
- Additional API


Programming Approach in J2ME

- Heavy Object-Oriented Programming approach is NOT good for developing mobile game. One class costs you about few hundreds bytes.
- It doesn’t mean that putting everything into a class is a good design. It makes the code hard-to-read. Also, some phones have a limitation on size of class file.

No comments: