O'Reilly logo

Mastering Android Game Development by Raul Portales

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

We have added Google Play services to YASS, including setting up the game in the developer console and adding the required libraries to the project.

Then, we defined a set of achievements and added the code to unlock them. We have used normal, incremental, and hidden achievement types to showcase the different options available.

We have also configured a leaderboard and submitted the scores, both when the game is finished and when it is exited via the pause dialog.

Finally, we have added links to the native UI for leaderboards and achievements to the main menu.

We have also introduced the concepts of events, quests, and gifts and the features of saved games and multiplayer that Google Play Game services offers.

The game is ready to publish ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required