Closed THB0705 closed 5 years ago
Yes, thanks for the idea. When you asked of me last time to do an autosave I started on it, but couldn't finish it. I already made a save file text and have an autosave and can make a manual save. All I have to finish is loading in the files which should take to long. The next time I'll update the game is about 5 hours from this comment because that's the next time I can work, but I can assure you the new save a load feature will be added. Also, I don't know if you want me to still keep in the Import/Export on top of the file saving, but just tell me what you would prefer. The image glitch from the other issue is just a simple 1 line of code to reload the images.
-8BitToaster
I would keep the import/export function but make them a bit more obscure. (smaller buttons?) Keep them as long as there is no multiple save option.
The new version is added for autosaving every 30 seconds and also you can now save ingame manually. The import/export is still there, but you don't have to use them anymore.
-8BitToaster
Consider this suggestion regardless of whether you have added encryption to your import or export functions.
Add a file with whatever name you like to your files in the project, just a text file. Let's call it save.txt .
Add a save button in the options menu or somewhere in-game. If this save button is clicked, the saveFunction is called. The saveFunction then calls on the export function and instead of writing the gamestate to the console it writes it to save.txt .
In the main menu, use the left button to create a button called load game. When clicked this calls the load game function which then calls an altered version of the import function but then instead of expecting console input, it just checks whether there is any saved game at all by trying to read the save.txt file. If this fails, the button does nothing, the user apparently has never played the game before. If it works, well then the game is started in the previous game state in which the player was left of.
This would be a nice complementary to the import and export functions where the user has to go through the hussle of copying long strands of text, etc.. What do you think? Should be doable right?