Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
2

Can you make a code bookmark?

Rocking-Rayquaza
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?

2 years ago
You are viewing a single comment. View All
2
crunchyfrog32
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.

2 years ago
1
Rocking-Rayquaza
Rocking-Rayquaza

you mean like like in json format?

@crunchyfrog32

2 years ago
1
crunchyfrog32
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).

2 years ago