Book Image

Mastering Android Game Development

By : Raul Portales
Book Image

Mastering Android Game Development

By: Raul Portales

Overview of this book

Table of Contents (18 chapters)
Mastering Android Game Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
API Levels for Android Versions
Index

Achievements


We will first define a few achievements in the developer console and then see how to unlock them in the game. Note that to publish any game with GPGS, you need to define at least five achievements. No other feature is mandatory, but achievements are.

Note

We need to define at least five achievements to publish a game with Google Play Game services.

If you want to use GPGS with a game that has no achievements, I recommend you to add five dummy secret achievements and let them be.

To add an achievement, we just need to navigate to the Achievements tab on the left and click on Add achievement:

The menu to add a new achievement has a few fields that are mostly self-explanatory. They are as follows:

  • Name: the name that will be shown (can be localized to different languages).

  • Description: the description of the achievement to be shown (can also be localized to different languages).

  • Icon: the icon of the achievement as a 512x512 px PNG image. This will be used to show the achievement in the...