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
BobTheTomatoPie (3362)

someone has hacked repl and is spam tagging users, I am VERY pissed off right now as every time i am pinged it sends me an email, i have been pinged over 2000 times in the past 4 hours. If you do not fix this i swear to god i will quit repl

amasad (3449)

@BobTheTomatoPie we have a fix on the way, sorry about that.

BobTheTomatoPie (3362)

im have never been more happy from a ping, thank you so much man @amasad