Saving and Loading Game Data
As soon as I start having game data, I immediately create the functionality for saving and loading it.
I use POCOs to store the data, and I always make sure that they are easily serializable to json.
This was not always so.
I used to persist to a SQLite database.
Which made adding new world data slower than it needed to be.
And it made refactoring it absolutely awful.
So now: JSON!
My save and load functions become effectively one line.
And once I have any sort of world data object, I can persist it to a file and load it from a file.
And thus completes all of the non-gaming part of the project.
Approximately, it took 4-6 hours to get to this point.
Now I can FINALLY make this into a game!
Files
a-game-in-vbnet-about-yer-the-monster-and-starting-with-nothing-windows.zip 33 MB
Version 5 Jun 18, 2023
a-game-in-vbnet-about-yer-the-monster-and-starting-with-nothing-linux.zip 32 MB
Version 5 Jun 18, 2023
a-game-in-vbnet-about-yer-the-monster-and-starting-with-nothing-mac.zip 33 MB
Version 5 Jun 18, 2023
Get A Game in VB.NET About Yer the Monster and Starting with Nothing
A Game in VB.NET About Yer the Monster and Starting with Nothing
Status | Released |
Author | The Grumpy GameDev |
Genre | Simulation |
More posts
- The Game is "Done", And Summarizing What I LearnedJun 26, 2023
- Running from Danger!Jun 25, 2023
- INT 16h, and Typematic Delay and RepeatJun 25, 2023
- Menu OverhaulJun 24, 2023
- More Colors and Different Aspect RatioJun 24, 2023
- Yer can Eat! And briefly delay his immanent demise!Jun 23, 2023
- MUSHROOMS!Jun 22, 2023
- Moving About, Exploring the Empty SwampJun 22, 2023
- Switch To Top Town RoguelikeJun 21, 2023
- Hunger, Death, and MessagesJun 21, 2023
Leave a comment
Log in with itch.io to leave a comment.