40Phaser
40Phaser copied to clipboard
Add logic to end screen text
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.