hmmm, i think i didnt get your question properly.
i think i explain in short how it works:
main program stores one of the game-states (an object representing the game, the menu, the highscore whatever)
in an interface called metaGame.
so if the game ends, the gameField - object calls the main-class for changing :
1
| metaGame = new HighScore(...) |
in my applet's paint(...) method theres only one important entyr:
so that the actual gameState object is painted.
when metaGame is set to highScore and shall paint first time it gets the graphics context g2D with the last picture taken at the gamefield. but i have no way to get this picture again within the highScore. so if i fade out and draw something to the graphics context i have not the clear gameField picture for next frame.
so i thought it would be possible to store the gameField picture in an image and paint it every frame as background.