Well, this really is a lesson about creating the object from file, using the class we built and accessing the data stored within that object. After this tutorial, the game will now save and load data files correctly, even when running from the desktop. Great!
This lesson is really about how to access the data stored in the saved file. What you store, and how you use it, is up to you though, which makes this a very quick video.
I personally saved just the current level data, but there is no reason you couldn't save whatever data you want - player stats, location and/or high-scores are some obvious additions, depending on your game genre. How you use that data is also dependant on your game, and how you have written it.
I will always try to answer questions, so feel free to leave comments below.
Future topics to cover include class design using (simplified) UML, basic data encryption, Proxy and Flyweight design patterns, writeReplace(), readResolve() and dealing with multiple save files.
Subscribe to ensure you don't miss anything out!
Auf dieser Seite können Sie das Online-Video Java Game Programming - Saving and Loading [P9] mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Andy Solace 29 November 2014 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,947 Mal angesehen und es wurde von 9 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!