Java Game Programming - Saving and Loading [P9]

Pubblicato il: 29 novembre 2014
sul canale di: Andy Solace
1,947
9

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!


In questa pagina del sito puoi guardare il video online Java Game Programming - Saving and Loading [P9] della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Andy Solace 29 novembre 2014, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,947 volte e gli è piaciuto 9 spettatori. Buona visione!