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
Added a "Restart from Checkpoint" button #885
Conversation
This looks good, I'll test it later today. 👍 |
Hello @InsightGit Seems like this slipped through my fingers, sorry about that. It looks good, can you just resolve the conflicts and I'll merge this. |
There are two remaining things:
|
} else if(reset_checkpoint_button) { | ||
reset_checkpoint_button = false; | ||
|
||
PlayerStatus *player_status = currentsector->player->get_status(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe get_current_sector()->player->get_status();
@HybridDog I don't suppose @InsightGit is interested in continuing this. Are you willing to take over? |
Yes, I'll try to add the button. |
This PR adds a "Restart from Checkpoint" button to the pause menu in order to address issue #800, which requested for this sort of button to be added. The "Restart from Checkpoint" button will only appear underneath the "Restart Level" button if the player has more than 25 coins and has passed a valid checkpoint. If the player meets the conditions and triggers the button, it will subtract 10%(or 25) of the player's coins and restart the level at the past checkpoint.
Closes #800