Programming a Java Text Adventure: Saving Games

preview_player
Показать описание
Source Code available from:

This Java Adventure Game Playlist:

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:
And worldwide.

For in-depth courses on Java programming, C# programming and adventure games go to the Bitwise Courses site:
Рекомендации по теме
Комментарии
Автор

Perfect tutorial! Could you add one to add simply add an image for each room??

joshuaporcella
Автор

This doesn't work for me. I have several subclasses that include a combat field and a game field. and the upper class is, for example, map settings. The game starts via the game logic, i.e. the start screen with name entry, character selection, etc., until it really gets going. I don't know how to do that... if I use mapsettings in savegame, nothing works. The game comes loaded but I'm still in the title screen or all my values ​​are at zero if I skip the title screen

DieterKlingberg
Автор

Very Helpfull :DD im making my own text adventure game... is it possible to you to make a video about character dialogue?

afonsobatista
Автор

Can you help me to undo, reset a text based java game. This is for tik tak toe game

wathsdsilva
welcome to shbcf.ru