Sun Microsystems J2ME User Manual Page 97

  • Download
  • Add to my manuals
  • Print
  • Page
    / 134
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 96
Appendix A Application Demonstrations 85
FIGURE 44 The Game of Life in three dimensions
The keypad buttons provide control over the game.
This source code for this example is particularly well-documented. Take a look at
{toolkit}\apps\Demo3D\src\com\superscape\m3g\wtksamples\life3d\Lif
e3D.java.
A.4.2 PogoRoo
PogoRoo shows you the rear end of a kangaroo bouncing up and down on a pogo
stick.
TABLE 9 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 a list that includes
gems like P4 Glider, Skew beehive plus, and P4 Rotor.
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.
Page view 96
1 2 ... 92 93 94 95 96 97 98 99 100 101 102 ... 133 134

Comments to this Manuals

No comments