Games will get played more, if members/viewers can compete for high scores.
By adding something like this, only when game is over:
game.end(type,object)
Also add to this function an object where scores and levels reached are stored.
/**
* type {string} ['game_over']
* object {object}
* level {string}
* score {int}
*/
game.end('game_over', {score : score, level : level : {/*INSERT HERE IF AVAILABLE*/} });
Some Gamepix games use something like this and the save score/level works well.
I can pull that info from the console on embedded games and use ibproarcade save score code.
This should work with any arcade software that uses ibproarcade games.
myarcadeplugin, vBulletin arcades, ipsProArcade and more.