Actually my midlet is not a scrolling shooter, but the problem I am having is exactly what a scrolling shooter has to face - thus the title.
In my midlet I've got a big offscreen image ( about 5*scrWidth x 5*scrHeight ) - let's call it 'bigImage'. At any given time, I have to show scrHeight x scrWidth part of it on the screen, but first I have to overlay some additional graphics on top of it.
I do it by having another offscreen image ( scrHeight x scrWidth in size ) - let's call it 'smallImage' . I remember which part of the 'bigImage' I have to show, copy that part to the small image using
then I use smallImage's Graphics object to overlay the additional graphics and I copy the resulting 'smallImage' to the screen with one call to drawImage().
Now, this works, but I am facing some problems with flickering. Namely, user is able to rapidly scroll the part of the 'bigImage' being shown and when he does it, the whole screen flickers badly.
The question: isn't there some better way? How do the scrolling shooters avoid the flicker?