O'Reilly logo

Java™ ME Game Programming, Second Edition by Ph.D. Martin J. Wells, Ph.D. John P. Flynt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

SpritePlay

The SpritePlay class allows you to explore several features of the interfaces of the Sprite and GameCanvas classes. It also offers a few lines to illustrate the use of the TiledLayer class. The features of the SpritePlay class definition are kept to a minimum so that it is easy to explore such activities as using frame sets and working with collision detection and transformation. Figure 14.3 provides a view of a session with the SpritePlay class.

Figure 14.3. A collision event retrieves a frame from a sequence of frames and rotates the result by 45 degrees.

The faces you see in Figure 14.3 represent the implementation of the faces ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required