Motorola maxx V6 manual Gaming API/Multiple Key Press, Draft Subject to Change 148/201

Models: maxx V6

1 201
Download 201 pages 31.32 Kb
Page 148
Image 148

Java ME Developer Guide

Chapter 21 - Gaming API/Multiple Key Press

21 Gaming API/Multiple Key Press

21.1 Gaming API

The Gaming API provides a series of classes that enable rich gaming content for the handset. This API improves performance by minimizing the amount of work done in Java, decreasing application size. The Gaming API is structured to provide freedom in implementation, extensively using native code, hardware acceleration, and device- specific image data formats as needed.

The API uses standard low-level graphic classes from MIDP so the high-level Gaming API classes can be used in conjunction with graphics primitives. This allows for ren- dering a complex background using the Gaming API while rendering something on top of it using graphics primitives.

Methods that modify the state of Layer, LayerManager, Sprite, and TiledLayer objects generally do not have any immediate visible side effects. Instead, this state is stored within the object and is used during subsequent calls to the ￿￿￿￿￿￿￿ method. This approach is suitable for gaming applications where there is a cycle within the objects' states being updated and the entire screen is redrawn at the end of every game cycle.

DRAFT - Subject to Change [148/201]

Page 148
Image 148
Motorola maxx V6 manual Gaming API/Multiple Key Press, Draft Subject to Change 148/201