New rest Google play games services plugin (Launched)

Edit: Just launched https://forums.coronalabs.com/topic/63301-google-play-games-services-plugin/

As you know hosting game servers are expensive. There are the gameNetwork plugins, but they are not fully fleshed out and not cross platform. Well thats google play games services comes in.

After a few months scratching my head, I finally figured out how to get the rest api in google play games services to work in Corona. Before you get to excited it is still a work in progress, but will probably be ready in a few days. This plugin will work on any platform. I have not tested all api endpoints (mainly just leaderboard), but they should work fine. This plugin has just makes what I call gpgs.request. There is no gpgs.getLeaderboard because lots of end points to cover. Here is an example call:

local myScore = 1234local leaderboardId = ""local scoreParamsscoreParams={score=string.urlEncode( tostring(myScore))}gpgs.request("https://www.googleapis.com/games/v1/leaderboards/"..leaderboardId.."/scores", "POST", function ( e ) if (e.error) then print("error") else print( e.response ) endend, scoreParams) 

I don’t know how I am going to release it. Maybe marketplace ,but it does not offer paid plugins :(. Oh well, time to get back to work. Plugin still needs some work but here is a demo of leaderboards with google play games services.

Enjoy,
Scott

https://drive.google.com/open?id=0B5swSg-cH4L6dTMtX19XU0ZTOG8

Edit: Note this app will require a webView

Edit2: Update 1: Trying to get turn based setup to make sure it is working, getting errors for some reason. Set an email to Google support waiting to hear back.

Sweet, looking forward to this

This has been launch:

Check out this forum post for details.

https://forums.coronalabs.com/topic/63301-google-play-games-services-plugin/

Sweet, looking forward to this

This has been launch:

Check out this forum post for details.

https://forums.coronalabs.com/topic/63301-google-play-games-services-plugin/