Achievements
(This is a draft)
- Add various listeners for achievements (See VaultCompleteListener.java for example)
It would look something like that:
// Handle division by zero error
user.getStats().addToStringSet("achievements", "division-by-zero");
user.getSet("achievements"); // ["division-by-zero", ... ]
- Add an column in the
/leaderboardpage with the number of achievements + a list on click or hover
I would like to tackle this one. Can you give me a bit more info on the task? Like where this Listener should be located. (Or where these achievements will be generated).
Hi, thank you for the help!
For now you can put a dummy achievement division-by-zero (Check if the error flag is set after CPU.execute() was called) just to have something to display in the leaderboard and we can go from there, let me know if you have questions!
Are you still looking for help on this issue? I can make a night of this, maybe get some Game Center/Google Game Server integration too.