This is a pretty open ended question, but what do you think the best way to store save information for a dungeon crawler is?
Essentially I have a bunch of rooms with and array of tiles and a linked list of entities in that room (enemies, chests) and each entity has its own different state variables and so forth. (It’s actually a bit more complicated, each room is split up into sections, of which only a few are activated at any given moment, and each section has a list off entities). There’s also a bag the player has with different items in it. I could go on…
I’d like some sort of method to save this information, so when the program is closed the player can resume the game from where they left off, preferably being able to save multiple files at the same time. Naively I’d create some text file that feeds in all the information of each room into it and then parses it back out, but figuring out how to encode that information and parsing it back out seems like a tremendous pain given how many different sorts of things id’ like to save.
There must be some more standard way to do this sort of thing, but it’s unclear to me exactly what it is. What sort of method would you employ? What classes would you utilize? Is there a guide that goes over what you think would be best?
Thanks!