scores in progress

This commit is contained in:
Cameron Taylor
2020-11-01 01:55:02 -08:00
parent 475dd9c49d
commit 40cce24b78
9 changed files with 122 additions and 59 deletions

View File

@ -109,6 +109,24 @@ class NGio
// more info on scores --- http://www.newgrounds.io/help/components/#scoreboard-getscores
}
inline static public function postScore(score:Int = 0, song:String)
{
if (isLoggedIn)
{
for (id in NG.core.scoreBoards.keys())
{
var board = NG.core.scoreBoards.get(id);
if (song == board.name)
{
board.postScore(score, "Uhh meow?");
}
// trace('loaded scoreboard id:$id, name:${board.name}');
}
}
}
function onNGScoresFetch():Void
{
scoreboardsLoaded = true;