Copyright (C) 2014 Google Inc.
These samples illustrate how to use Google Play Game Services with your Android game.
-
samples-android - A set of Android NDK samples.
-
CollectAllTheStarsNative: Demonstrates how to use the Saved Games feature to save game data. The sample signs the user in, synchronizes their data from a named game save, and then updates the UI to reflect the saved game state.
-
TrivialQuestNative: Demonstrates how to use the Events and Quests features of Google Play Game Services. The sample displays a sign-in button and four buttons to simulate killing monsters in-game. Each time the player clicks a button, an event is created and sent to Google Play Game Services to track what the player is doing in the game.
-
minimalist: Demonstrates a minimal use case for the Google Play Game Services API.
-
TbmpSkeletonNative: A trivial, turn-based multiplayer game. You can invite many friends to join you in this thrilling game, in which you send a shared gamestate string back and forth until someone finishes, cancels, or the second-to-last player leaves. Be the last (wo)man standing!
-
Teapots: Demonstrates use of the Leaderboard and Achievement APIs.
-
-
samples-ios: a set of iOS Native Client samples.
-
ButtonClicker: Represents the new generation in modern button-clicking excitement. A simple multiplayer game sample that shows how to set up the Google Play real-time multiplayer API, invite friends, automatch, accept invitations, use the waiting room UI, send and receive messages and other multiplayer topics.
-
CollectAllTheStars: Demonstrates how to use the Snapshots feature to save game data. The sample signs the user in, synchronizes their data from a named Snapshot, then updates the UI to reflect the game state saved in the Snapshot.
-
TrivialQuest: Demonstrates how to use the Events and Quests features of Google Play Services. The sample presents a sign in button and four buttons to simulate killing monsters in-game. When you click the buttons, an event is created and sent to Google Play Games to track what the player is doing in game.
-
TypeANumber: Shows leaderboards and achievements. In this exciting game, you type the score you think you deserve. But, wait--there's a twist! If you are playing in "easy" mode, you get the score you requested. But, if you play it in "hard" mode, you only get half! Can you handle the challenge?
-
TbmpSkeleton: A trivial turn-based-multiplayer game. In this thrilling game, you can invite many friends to join you, and then send a shared gamestate string back and forth until someone finishes, cancels, or the second-to-last player leaves.
-
Note: In samples with corresponding counterparts for iOS and Web (particularly, CollectAllTheStars and TypeANumber) the player can play a game seamlessly across phones of different platforms. For example, you can play some levels of CollectAllTheStars on your Android device, and then pick up your iOS device and continue where you left off! TypeANumber shows your achievements and leaderboards on all platforms; when you make progress on one platform, that progress is reflected on the other devices, as well.
To use these samples, you need the Google Play Game Services C++ SDK, which you can [download from here](https://developers.google.com/games/services/downloads/).After downloading the archive, unzip it to the ./gpg-cpp-sdk directory. Then follow these directions.