score

Get the highest score recored for the game.

info.score()

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.score() >= 100000) {
    if (lifeBonus) {
        info.changeLifeBy(9)
        lifeBonus = false
    }
}

See also

set score, change score by, score