Jump to content

Cocoonjs - leaderboards and achievements


Binary Moon
 Share

Recommended Posts

So the first thing you do is set everything up in the Play Store, every Achievement and Leaderboard you add has it's own unique ID that you should use for the services.

 

Here a piece of code I used for one of our Projects.

https://gist.github.com/AleBles/2b96a572a157a1755f1c

 

In your app you first have to make sure your user get's logged in, otherwise nothing will happen there, after that you just call the correct methods.

 

ps; you obviously need to include the cocoon library in your project

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...