KILLER REALM JOURNAL · STUDIO · 2026-11-24

Game development tips: add new save data without resetting player progress

What Orbit Breaker’s hearts update teaches about old saves, missing fields, test data and honest limits of local save recovery.

Killer Realm Journal: Game development tips: add new save data without resetting player progress

By Killer Realm Game Lab · Development notes from Orbit Breaker’s Godot/C# save code, inspected on 24 November 2026. These are implementation lessons, not a promise that every interrupted or damaged save can be recovered.

Start with the player’s old save, not an empty installation

A new feature can look correct on a clean install and still break an update. The player who already cleared levels has an older file, with older fields and no knowledge of your new system. That file is part of the feature’s input. Treating it as disposable makes an apparently small update capable of erasing hours of progress.

Our concrete example is Orbit Breaker’s addition of attempt hearts. Older saves already held level records, unlocks, settings and awards. They did not contain the new hearts object. The update needed to add the new feature without treating those players as new accounts or rewriting their accomplishments.

Give new fields defaults without resetting old ones

Orbit Breaker loads its local JSON into a progress model. Fields for existing level records and settings are read independently. If the hearts object is absent, the model keeps its default full pool of five hearts. Once the player saves in the new format, the hearts fields are stored alongside the earlier progress.

The reusable lesson is to add data with an explicit missing-field behavior. “No field yet” is different from “the player has zero.” Otherwise an old save might accidentally become an empty-heart account. Likewise, do not replace the whole progress object simply because one new optional field is missing. Test the old fields and the new defaults together.

Separate a temporary attempt from a permanent achievement

Orbit Breaker distinguishes ball lives within a level from hearts shared across attempts. Its save also records whether an attempt has already been launched. That distinction matters when the app is killed and restarted: reopening the app must not silently make an abandoned launched attempt free, or charge the same attempt repeatedly.

For developers, the wider principle is to name and persist transitions that affect rewards or costs. A screen appearing is not, by itself, a reliable definition of a completed action. Test repeated callbacks, relaunches and resume paths instead of assuming each screen runs once.

Write to a temporary file, and be honest about the fallback

The current SaveManager writes JSON to a temporary path, closes the writer and attempts to rename that file over the main save. This reduces the exposure of the main file during the normal write path. However, if replacement fails, the implementation falls back to writing directly to the main save. It would be inaccurate to call every possible path crash-proof or unconditionally atomic.

That is a useful code-review habit: follow the error branch before writing a reliability claim. A stronger general design can retain a known-good backup and validate the new content before promoting it. Those are recommendations for a save system, not features we claim this version already implements. Our present loader returns default progress on malformed JSON; that avoids a parsing crash but does not recover the player’s damaged data.

Run destructive experiments against a separate test save

Orbit Breaker’s explicit automated-test and store-capture modes select autotest_save.json instead of the player’s normal save.json. A test that resets progress, changes hearts or unlocks a late level should therefore not touch ordinary play data. Keep that separation deliberate, and confirm which mode is active before running a device test.

A practical upgrade checklist is to load a representative older save, confirm its cleared levels and stars, inspect settings and awards, check the new default, save again, and relaunch. Then repeat with an empty file, a missing optional field and malformed JSON in a disposable test location. Test a background/foreground cycle and a killed launched attempt too. A parser accepting the file is only the first check; retained player-visible values are the important result.

Local saves and cloud identity solve different problems

Orbit Breaker currently keeps progression locally. Its Google Play Games achievements integration does not make that save a cloud backup or synchronize all level records across phones. When explaining an update, say exactly what survives an in-place upgrade and do not imply that uninstalling or changing devices is covered by a system that does not exist.

Godot’s saving-games tutorial introduces persistence and serialization. The studio lessons above come from our own implementation, including its limitations. For the gameplay side, see the Orbit Breaker beginner’s guide.

Primary sources

← Back to the Journal