Giter Club home page Giter Club logo

cpp-android-basic-samples's Introduction

Google Play Games C++ SDK Samples for Android

Copyright (C) 2014 Google Inc.

Contents

These samples illustrate how to use Google Play Game Services with your Android game.

  • 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. Clicking a button generates an event, and sends it 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. Many players can play together in this thrilling game, in which they send a shared gamestate string back and forth until someone finishes or cancels, or the second-to-last player leaves. Be the last one standing!

  • Button-Clicker: Demonstrates real-time multiplayer using invites or quickmatch

  • Teapots: Demonstrates use of the Leaderboard and Achievement APIs.

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.

How to run a sample

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.

Other resources

* [Google Android Vulkan Tutorials](https://github.com/ggfan/android-vulkan-tutorials) * [Android Vulkan API Basic Samples](https://github.com/googlesamples/vulkan-basic-samples) * [Google Android NDK Samples](https://github.com/googlesamples/android-ndk)

Acknowledgment

Some of these samples use the following open-source project: JASONCPP: https://github.com/open-source-parsers/jsoncpp

cpp-android-basic-samples's People

Contributors

hak avatar ggfan avatar claywilkinson avatar tjohns avatar thedmail avatar mystal avatar gguuss avatar iannilewis avatar jknightdoeswork avatar naokigoogle avatar wolffg avatar

Watchers

LanCoder avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.