Please tell me the code that increase score and if someone continue the the code is still maintain the score... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please tell me the code that increase score and if someone continue the the code is still maintain the score...

4th Sep 2018, 11:24 PM
aman singh
aman singh - avatar
2 Answers
+ 1
It sounds like you want the score to persist?... If so, the score will need to be written to a file (csv, txt, etc.) or a database of some sorts. This will allow users to play your game and pick up where they left off. You can also implement a manual save button and auto feature which will provide for a more seamless experience
4th Sep 2018, 11:33 PM
Steven M
Steven M - avatar
5th Sep 2018, 4:04 AM
aman singh
aman singh - avatar