How to implement a save/load system to a game?
mkhoi (197)

I am making a game and want to have a save/load system because it is frustrating without the save/load system (its a long game and also it has permadeath but if i have the save/load system it won't have permadeath)

Check it out:
The Wacky Warrior, its on Challenge

Someone please help me!!!

You are viewing a single comment. View All
Answered by ash15khng (393) [earned 5 cycles]
View Answer
ash15khng (393)

@mkhoi You could create a JSON object or whatever you want, then write it into a file like this:

save = <whatever you need however you want to save it>
with open("file.txt", "w") as f:
  f.write(save)