From a developer
I am calling this code automatically on game over, to save score to leaderboard:
var scoreObj = {
table: ‘arcticPongHighscore’,
points: score
};
ID.GameAPI.Leaderboards.save(scoreObj, function () {console.log(‘Save successful’)});
And also I am calling this code after “SHOW LEADERBOARD” button click:
var listOptions = {
table: “arcticPongHighscore”
};
ID.GameAPI.Leaderboards.list(listOptions);
Do you know whats wrong with this? Or do you have some clue for me to make it work? thanks