Add a "going back" page-curl transition style #131
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I played a ChoiceScript game with an IF meetup group today, and I noticed something a little odd. When you click on the button to "Show Stats", a nifty little animation plays where the story flies off to the left:
But then, when you click on the button to go back to the game, the story comes back in from the right side of the screen:
"Huh," I thought to myself, "that's strange. The camera moved to the right, and we arrived at the stats screen, and then the camera moved further to the right, and we were back to where we were previously. Does this game operate in some kind of cylindrical universe, like PAC-MAN? Am I remembering wrong—no, the story definitely exited stage left; it must've crossed backstage, but we were only on the stats screen for a few seconds..." And I was so engrossed in this line of questioning that I forgot it was my turn to say what choice to make next.
This PR, then, helps future players avoid getting distracted by making the story come back in from the left instead:
This new "back curl style" happens when you close the stats screen, close the menu, or restart the game. I've also added a
*next_curl_goes_back
command that authors can add to use this transition. (For example, it could be used when a player responds "No" to an "Are you sure?" choice.)