amasad (3449)

You can use this to create and persist a scoreboard for your game.

It's very simple:

  1. include a script in your app <script src=""></script>

  2. You'll get a global object scoreboard

  3. scoreboard.submit\({username: 'playerNameHere', score: numberScoreHere}\)

  4. List the scoreboard using scoreboard.list\(\).then\(topTenScores => console.log\(topTenScores\)\)

The script is smart enough to create a board for your game (it's domain-based) so it's very easy to use. End to end example here:

Here is the source code for the service if anyone is interested 😉

You are viewing a single comment. View All
JSer (84)

If a player wants to submit his score multiple times, how can I make it so it can delete his previous scores?

amasad (3449)

@iamcaleblol: I made it so that it picks the highest score.


  1. amasad scored 10
  2. amasad scored 8 (it's still 10 because it's higher)
  3. amasad scored 12 (it will register 12 because it's the highest)

Does it make sense?

amasad (3449)

@iamcaleblol: Let me know if you want to reset the data or delete something and I'll do it for you