Namespace: leaderboards

Splat. leaderboards

Methods

(static) reportAchievement(id, percent)

Report that an achievement was achieved.
Parameters:
Name Type Description
id string The name of the achievement.
percent int The percentage of the achievement that is completed in the range of 0-100.
Source:

(static) reportScore(leaderboard, score)

Report that a score was achieved on a leaderboard.
Parameters:
Name Type Description
leaderboard string The name of the leaderboard the score is on.
score int The score that was achieved.
Source:

(static) showAchievements()

Show the achievements screen.
Source:

(static) showLeaderboard(name)

Show a leaderboard screen.
Parameters:
Name Type Description
name string The name of the leaderboard to show.
Source: