I am creating an RPG game, and I already have the core game systems ready, such as combat, inventory, and itemization.
But I don't really understand how to save the hero's progress in the game.
The character is created as a (global) object to which variables such as health, name, damage, etc. are assigned.
All items in the game are also created as global objects with variables similar to those of the character.
I'm wondering how to create a game saving system. I've never dealt with this before, and I would like to create something like the list in the attached photo:
How do I save all these objects, or the game state? Does it have to be a file saved on a local disk that can then be uploaded?