Programming a Java Text Adventure: Saving Games

Code With Huw
Code With Huw
5.8 هزار بار بازدید - 4 سال پیش - Source Code available from:
Source Code available from:
http://www.bitwisebooks.com

Subscribe to the Bitwise Courses YouTube channel: https://www.youtube.com/BitwiseCourse...

This Java Adventure Game Playlist:  
Program a Text Adventure Game in Java

Now you have a game with a map containing numerous rooms and rooms containing numerous treasures. The ‘state’ of the game is constantly changing as the player moves around taking and dropping treasures. In order to re-load a game you have to be able to save and restore the entire game state – the map, the rooms, the treasures in the rooms, the player’s position and the treasures in the player’s inventory. Sounds complicated? In fact, it’s remarkably easy to do thanks to the power of Java serialization.

For an in-depth explanation of programming text adventures in C# and other languages, get a copy of The Little Book Of Adventure Game Programming. Available from:
*     Amazon.com     https://amzn.to/33M6sQ4
*     Amazon.co.uk   https://amzn.to/2YtaBrj
And worldwide.

For in-depth courses on Java programming, C# programming and adventure games go to the Bitwise Courses site:
http://www.bitwisecourses.com
4 سال پیش در تاریخ 1399/02/08 منتشر شده است.
5,865 بـار بازدید شده
... بیشتر