Save, load, and be merry

Whether the boss is coming, or the notebook is running out of batteries—there are reasons why users quit the game while it is running. In these cases, they typically did not intend to abandon the game. When they run it the next time, they expect their character to appear at the same spot where they left it, with all its equipment and points. Since every game is different, you have to implement custom code to save (persist) and load (restore) a game.

Get jMonkeyEngine 3.0 Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.