Zooshi
An open source project by FPL.
All Pages
Google Play Games Services

Set Up Google Play Games Services

To use the Google Play Games Services features in the game, follow the steps below to set up Google Play Games Services IDs:

  • Create an App ID with a new package name in the Google Play Developer Console.
    • Replace app_id in res/values/strings.xml with the newly created one.
    • Update the package name in AndroidManifest.xml and the java files.
      • For example, rename com.google.fpl.zooshi to com.mystudio.coolgame.
  • Create 5 achievement IDs and 1 leaderboard in the Google Play Developer Console.
    5 achievements should be configured as follows:
    • "Sushi Chef", incremental achievement, 100 steps.
    • "Sushi Ninja", incremental achievement, 1000 steps.
    • "Sushi Samurai", incremental achievement, 10000 steps.
    • "A Delicious Cycle", regular achievement.
    • "All You Can Eat.", regular achievement.
  • Update IDs in src/rawassets/config.json in the entry below.
"gpg_config": {
"leaderboards": [
{"name": "LeaderboardMain", "id": "Enter the leaderboard ID here"},
],
"achievements": [
{"name": "ADeliciousCycle", "id": "Enter the achievement ID here"},
{"name": "AllYouCanEat", "id": "Enter the achievement ID here"},
{"name": "SushiChef", "id": "Enter the achievement ID here"},
{"name": "SushiNinja", "id": "Enter the achievement ID here"},
{"name": "SushiSamurai", "id": "Enter the achievement ID here"},
]
}