high Score
Get the highest score recored for the game.
info.highScore()
The highest score recorded by your game program is remembered. So, you can find out what the player’s best score was for the game.
Returns
- a number that is the highest game score.
Example
Add 9
to the life count if the player had a high score of 100000
points.
let lifeBonus = true
if (info.highScore() >= 100000) {
if (lifeBonus) {
info.changeLifeBy(9)
lifeBonus = false
}
}