In the new edition of Glace, players can revisit stages at pretty much anytime during their playthrough. This means the game has to keep track of what happens in each stage so that things aren’t just reset every time the player comes back in. That’s what I’m working on now.
I’m using Unity for this new edition, and most stages in the game will exist in their own Unity scene. I plan to add all the collectibles into the stages by hand (mostly). Each time the scene is loaded, all the collectibles are spawned in (e.g. gems). I don’t want players to revisit stages and re-collect the same gems.
So when gems are collected in a stage, a record is kept, and the stage will remember to delete that gem the next time the scene is loaded. The same system is used for spawning certain enemies and for keeping track of whether or not a particular door/obstacle has been unlocked. Should be cool!