9 min read
Achievements and cloud saves
Optional cross-device progression with safe local fallback.
Achievements
Progress is absolute, monotonic, target-bounded, and scoped by game/environment. Guest progress is device-local until your game performs an intentional merge after authentication.
Cloud saves
const current = await D3Games.cloudSave.load("main");
await D3Games.cloudSave.save("main", nextState, current?.version ?? 0);On CLOUD_SAVE_VERSION_CONFLICT, reload and merge. Never silently overwrite a newer device version.