Skip to reading
Text & Sierra-Style Adventures

31. Prove that restoring actually restores

Edition 0.86.3.4

Build a complete text or graphical parser adventure with typed commands, inventory puzzles and press-to-walk controls.

Download PDFView PDF page

1. Reach the cabin and take the fuse. Check that the score is 4.

2. Type SAVE. Expect the slot 1 confirmation.

3. Type DROP FUSE. Confirm that inventory no longer contains the fuse.

4. Type RESTORE. The fuse should be carried again and the score should still be 4.

5. Fit the fuse and turn on the radio. The score should reach 10.

6. Restore the earlier save again. The radio should be unfitted and the score should return to 4.

Also test a fresh game with no save file. RESTORE should explain that there is no save in slot 1. Do not confuse an old test save from another revision with the new project’s starting state.

The sample keeps one quick slot to make the code easy to follow. Before release, consider opening a proper Save Game / Load Game interface so players can keep several checkpoints. PCA’s Save Game Widget and system menu actions can provide that interface.

PCA saves can include mutable project data as well as story state. When you change a script during development, test with Play / Restart and new saves. An older save can contain the earlier project configuration.

Page 34 of 68Permalink
Go to page