Chapter 12. MIDP Game API

Game applications have proven to be one of the most popular uses for Java 2 Micro Edition, so a dedicated Game API is provided in Mobile Information Device Profile version 2.0 to facilitate game development. This API provides several benefits to the game developer. First, it simplifies game development and provides an environment that is more familiar to game developers. Second, it reduces application size and complexity by performing operations that would otherwise be implemented by the application. Third, because the API can be implemented using native code, it can also improve performance of the frequently used game routines.
As with the low-level user interface APIs, applications that use the Game API must be written carefully in order to ensure portability. Device characteristics such as screen size, color depth, and key availability must be accounted for by the developer if application portability is desired.
 |