×
Namespaces

Variants
Actions

Talk:Explode effect for Java ME Images

From Nokia Developer Wiki
Jump to: navigation, search
{{{width}}}
25 Sep
2009
Article Review by Larry101 (20090925)

This article provides a code example for a nice “exploding image” effect in Java ME. The code example demonstrates how to create an animation which makes it appear as if an image is exploding, with the image splitting into pieces, which are shown to be “blown” outward from the image center. The effect makes use of the translate and setClip methods of the Graphics class to split images up into pieces and move these to create the desired effect.

While the code example probably doesn’t have very many potential use cases, it does nevertheless serve to show how to create impressive graphical effects using the low-level drawing operations provided by the Graphics object used by low-level drawing classes such as the Canvas. Using similar techniques, programmers can create all manner of interesting graphical effects for use in games or simply for creating impressive screen transitions.

The code example is nicely commented and clearly laid out, making it easy to understand and follow.