Skip to content
Sign upLog in
← Back to Community

Can you make a code bookmark?

Profile icon
Rocking-Rayquaza

I am making a game so I want a save feature that if the user leave the game in between and comes back again he can start from that particular place it the a way to do this in python??
Like a module or something?
so that it starts for a particular line of code where the user left?

Answered by crunchyfrog32 [earned 5 cycles]
View Answer
Voters
Profile icon
lamapale
Profile icon
Rocking-Rayquaza
Comments
hotnewtop
Profile icon
crunchyfrog32

I don't know about saving user data to their account/local storage in CLI programs (neither can you access the client IP address with Repl.it), but what you can do is making save codes that users can copy to get into a certain game state.

Profile icon
Rocking-Rayquaza

you mean like like in json format?

@crunchyfrog32

Profile icon
crunchyfrog32

@ROCKINGRAYQUAZA
I guess that works too, but it will make it much easier to hack, maybe you can use an encrypted json format, or just make a completely other format, like a combination of numbers (e.g. 419518859745823).