存档与读档
介绍如何在 Pixi'VN 中实现游戏进度保存与加载,涵盖文件导出、IndexedDB使用,以及网页游戏的自动存档策略。
Saving and loading progress is a core feature of most games, and it's especially important in story-driven games, where players expect to close the game mid-story and pick it up again exactly where they left off. In Pixi’VN, a save is a plain, serializable snapshot of the whole game state — narration position, canvas, sound, and any custom data you track — so you're free to persist it however suits your project: a downloadable file, a database, or the browser's local storage.