Java Game Programming - Saving and Loading [P9]

Publié le: 29 novembre 2014
sur la chaîne: 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!


Sur cette page du site, vous pouvez voir la vidéo en ligne Java Game Programming - Saving and Loading [P9] durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Andy Solace 29 novembre 2014, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,947 fois et il a aimé 9 téléspectateurs. Bon visionnage!