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!
Nesta página do site você pode assistir ao vídeo on-line Java Game Programming - Saving and Loading [P9] duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Andy Solace 29 Novembro 2014, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,947 vezes e gostou 9 espectadores. Boa visualização!