-
Notifications
You must be signed in to change notification settings - Fork 25
Add logic to end screen text #65
Copy link
Copy link
Open
Labels
good first issueGood for newcomers. Hop onboard!Good for newcomers. Hop onboard!status: accepting prsIf you can resolve this issue, please send a PR!If you can resolve this issue, please send a PR!type: cleanupTechnical debt, testing, or similar improvementsTechnical debt, testing, or similar improvements
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomers. Hop onboard!Good for newcomers. Hop onboard!status: accepting prsIf you can resolve this issue, please send a PR!If you can resolve this issue, please send a PR!type: cleanupTechnical debt, testing, or similar improvementsTechnical debt, testing, or similar improvements
Type
Fields
Give feedbackNo fields configured for issues without a type.
Currently, when a player hits the end screen they'll always see the text: "So Close!".
There should be some logical check for how the current score compares to the existing high score (if it exists at all) and display matching text.
For instance:
If the scores match ("Wow! Same high score!")
If a new high score ("Amazing, new high score!")
If less than high score ("So Close!") or ("Maybe next time")
The text can also be randomly chosen from an array of possible sayings.