Exit Print View

Java Platform Micro Edition Software Development Kit Version 3.0, Mac OS

Get PDF Book Print View
 

Document Information

Getting Started

Features

Using Sample Projects

Creating and Editing Projects

Viewing and Editing Project Properties

Running Projects in the Emulator

Searching the WURFL Device Database

Finding Files in the Multiple User Environment

Profiling Applications

Network Monitoring

Lightweight UI Toolkit

Security and MIDlet Signing

CLDC Emulation on a Windows Mobile Device

Installing CLDC Emulation on a Windows Mobile Emulator (Windows Only)

On-device Debugging

Command Line Reference

Logs

JSR Support

JSR 75: PDA Optional Packages

JSR 82: Bluetooth and OBEX Support

JSR 135: Mobile Media API Support

JSR 172: Web Services Support

JSR 177: Smart Card Security (SATSA)

JSR 179: Location API Support

JSR 180: SIP Communications

JSR 184: Mobile 3D Graphics

Choosing a Graphics Mode

Quality Versus Speed

Content for Mobile 3D Graphics

Running Demo3D Samples

JSR 205: Wireless Messaging API (WMA) Support

JSR 211: Content Handler API (CHAPI)

JSR 226: Scalable 2D Vector Graphics

JSR 229: Payment API Support

JSR 238: Mobile Internationalization API (MIA)

JSR 256: Mobile Sensor API Support

Index


Running Demo3D Samples

Demo3D contains MIDlets that demonstrate JSR 184 features.

Life3D

Life3D implements the popular Game of Life in three dimensions. Live cells are represented by cubes. Each cell has 26 possible neighbors (including diagonals). For each step of the animation, cells with fewer than four neighbors die of loneliness, while cells with more than five neighbors die of overcrowding. An empty cell with exactly four neighbors becomes a new live cell.

The view of the playing board rotates slowly so you can view the board from all angles.

The keypad buttons in Controls for Life3D provide control over the game.

Controls for Life3D
Button
Description
0
Pause the animation.
1
Resume the animation at its default speed.
2
Speed up the animation.
3
Slow down the animation.
4
Choose the previous preset configuration from an arbitrary list. The name of the configuration is shown at the top of the screen.
5
Choose the next preset configuration from the list.
*
Generate a random configuration and animate until it stabilizes or dies. If it dies, generate a new random configuration.

The source code for this example can be found at:

Windows

installdir\apps\Demo3D\src\com\superscape\m3g\wtksamples\life3d\Life3D.java.

Mac OS

installdir/Contents/Resources/apps/Demo3D/src/com/superscape/m3g/wtksamples/life3d/Life3D.java.
RetainedMode

The RetainedMode MIDlet plays a scene file that shows a skateboarder in an endless loop.

PogoRoo

PogoRoo displays a kangaroo bouncing up and down on a pogo stick. To steer the kangaroo, use the arrow keys. Press up to go forward, down to go backward, and left and right to change direction. You might need to hold down the key to see an effect.