Skip to content

Checkpoints to save progress #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JudgeGroovyman
Copy link

I've tested it with all 5 levels all the way through and this simple checkpoint system that I've made works well. I used the same paradigm as the high score file. The program makes a simple checkpoint.txt (in the same folder as the highscore.txt) every time they get to a new level, and it reads the checkpoint file when the game is first started. If the user wants to they can delete the checkpoint file and the game will reset back to level 1. The checkpoint file is gitignored and the game will start fine without one. It doesnt save your score at the checkpoint so its not strictly a continue but it generally saves your progress so you dont get set all the way back to square one which makes it implicitly rewarding to beat the whole game in one sitting (because you will have more levels contributing to your score). This approach seemed like the simplest solution for the user to lose all progress if their computer dies or their cat steps on the escape key. I hope to add many more levels for a more advanced campaign and dont want to lose progress. This will also let anyone to easily test their later levels during development.

I've tested it with all 5 levels all the way through and this simple checkpoint system that I've made works well. I used the same paradigm as the high score file.  The program makes a simple checkpoint.txt (in the same folder as the highscore.txt) every time they get to a new level, and it reads the checkpoint file when the game is first started.  If the user wants to they can delete the checkpoint file and the game will reset back to level 1.  The checkpoint file is gitignored and the game will start fine without one.  It doesnt save your score at the checkpoint so its not strictly a continue but it generally saves your progress so you dont get set all the way back to square one which makes it implicitly rewarding to beat the whole game in one sitting (because you will have more levels contributing to your score).  This approach seemed like the simplest solution for the user to lose all progress if their computer dies or their cat steps on the escape key.  I hope to add many more levels for a more advanced campaign and dont want to lose progress.   This will also let anyone to easily test their later levels during development.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant