Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Play Game Services on a desktop game

I created a game in Java using Libgdx framework. Now I would like to know if it is possible to use Google Play Game Services in a desktop (java/.jar) game, or is it meant just for mobile devices?

like image 312
redman Avatar asked Dec 29 '13 19:12

redman


People also ask

Can I access Google Play Games on PC?

With Google Play Games, you can play mobile games on your Windows computer. When you play games on your PC, you get a larger screen with better graphics and you can use a keyboard and mouse. Whether you play your game on a computer or mobile device, progress stays synchronized. You still earn Play Points.

Is Google Play Services and Google Play Games same?

Google Play Services connects apps to other Google services, like Google Sign In and Google Maps. Google Play Services isn't the same as the Google Play Store app, and is included with Android. Google Play Services doesn't make your battery drain faster or use too much of your mobile data plan.


1 Answers

As I am faced with the same question, I do not have a complete answer, but I think the short answer is yes, you can. But you'll have to use the rest API instead of a nice java API, and some features are not available (such as the real-time online multiplayer support). You can see the reference here:

https://developers.google.com/games/services/web/api/index

As you can see, the major stuff like anchievements, leaderboards, and turn-based multiplayer services should be available (and you can even see there is stuff like joining rooms, but they are marked as "For internal use by the Games SDK only."), so I guess the REST API covers the major needs.

I have yet to test this on a desktop aplication and for sure you'll want some support library to help with the quirks of the HTTP-REST protocol, but I think it is feasible.


EDIT: Since this API is meant for the web, you may still need some kind of initial JavaScript interaction with the user (using google's JavaScript libraries) in order to authenticate the user first, but the rest of the interaction can be done "server-side" (and in any language you want). Read this for more details:

https://developers.google.com/games/services/web/serverlogin

like image 184
Jorge Galvão Avatar answered Sep 29 '22 13:09

Jorge Galvão