Sun Microsystems J2ME manual Demo3D, Life3D

Models: J2ME

1 134
Download 134 pages 62.02 Kb
Page 96
Image 96

FIGURE 43 An image transferred via simulated Bluetooth

You can avoid the permission prompts by running the demonstration in the trusted protection domain.

A.4 Demo3D

This application contains three MIDlets that show off the emulator's support of JSR 184, the Mobile 3D Graphics API.

A.4.1 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 4 neighbors die of loneliness, while cells with more than 5 neighbors die of overcrowding. An empty cell with exactly 4 neighbors will become a new live cell.

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

84 J2ME Wireless Toolkit User’s Guide • October 2004

Page 96
Image 96
Sun Microsystems J2ME manual Demo3D, Life3D