Battery saves
How a cartridge remembers things after the console is switched off, and how to make Critter Quest count your wins.
Memory with a battery
Many GBC cartridges carry a little memory kept alive by a battery, so it holds its contents when the console is off. That is where saves live. In an emulator it is a save file next to the game.
Here a game has save slots, and a save is a few calls: save_exists asks if a slot has a save, save_read reads it, save_write writes it. Critter Quest does not save anything yet.
GBC Intermediate is a course for paid accounts. The rest of this lesson, and its guided session, are in the app.
Next lessonOne engine, two games