40Phaser icon indicating copy to clipboard operation
40Phaser copied to clipboard

Add logic to end screen text

Open LinKCoding opened this issue 6 years ago • 0 comments

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.

LinKCoding avatar Dec 30 '19 21:12 LinKCoding