Develop and Optimize J2ME Mobile Game with MIDP2.0 GAME API
Li Wei · Computer Technology and Development · 2009
Mainly explores how to develop J2ME mobile telephone games with MIDP 2.0 GAME API,and how to optimize J2ME mobile telephone games.In the meantime,five existing industrial mobile telephone games provided by Mtone Co. Ltd.have been optimized and improved.Object-oriented technology,such as class nesting,is used improperly in original games.It inevitably leads to class expansions and large numbers of useless repetitious code,and penalties to the performance.The primary optimization strategies applied are limiting the usage of object-oriented programming and instead using structured programming where possible,removing unnecessary inheritance,redundant classes and interfaces,tackling of the performance bottle-neck and obfuscating programs.With all these optimization strategies improve the performance of these significantly and reduce greatly the size of the jar file.It shows that the game optimization techniques produced and discussed in this paper are really helpful to improve the performance of the mobile games,which could be further used in the future mobile game development.