Java Game Programming - Saving and Loading [P8]

Publié le: 20 novembre 2014
sur la chaîne: Andy Solace
546
9

So! Part 8! Today we begin to work on our WorldSave class and add the save and load controls to our game. Then we create a simple instance of the class and render it to disk in order to make sure our imported SaveGame class is functioning correctly.

Easy stuff! So much so I decided to skip the UML for now, as its really not required at this stage. Its a much better idea to get the class we pasted in last episode "plugged in" and working before worrying about making any complex choices about our WorldSave object.

Next time we will definately be talking about loading the file and extracting data from the saved file to set the player's current level to the level stored in the save file.

Don't be suprised to see just how similar the code to save and load objects here is to the code in the example project! That's the point!

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 [P8] durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Andy Solace 20 novembre 2014, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 546 fois et il a aimé 9 téléspectateurs. Bon visionnage!