Google Play Game Services in Libgdx - s76/libgdx GitHub Wiki
Google Play Game Services offers cross platform social leaderboards, achievements, and much more (realtime multiplayer, cloud saves, anti-piracy...)
A Super Jumper based example that makes use of Leaderboards and Achievements is available to download from Google Play.
The project is freely available on GitHub, and a companion tutorial is available here.
Another in-depth LibGDX-based tutorial for adding Google Play Game Servics can be found here.
-
Install Google Play Service and Google Play Repository using and Android SDK
-
Download BaseGameUtils sample project here and place it in your project root folder.
-
Edit settings.gradle
include 'desktop', 'android', 'ios', 'html', 'core', "BaseGameUtils"
- Edit root build.gradle and add the below as android dependency:
compile project(":BaseGameUtils")