Hello my friends, in past days I published Nash n' Go on the Play Store, I will update the game in the next days, the game if you still don t play it, has two modes, normal and crazy, each mode has it s own score, and I want to post on facebook for a leader board of friends from the user, but I want to have a leaderboard per mode, like candy crush on its levels, the question is, how can I do that on gideros? Sorry for my bad english, thanks
Comments
You would need to use your own server (http://appcodingeasy.com/Mobile-Backend/Score-REST-API-on-PHP5-and-MySQL) or third party server to do that (like parse)
EDIT: or move to Googleplay services
https://parse.com/docs/js/guide#cloud-code
You have to develop javascript functions in the server side for your game and expose them as Http REST API. Gideros provides UrlLoader to submit Http JSON request to those functions:
In the client side (Gideros) I define the following function to login to Parse with Facebook user:
https://parse.com/docs/rest/guide
With Gideros and UrlLoader, you can submit http request to this Rest API
Create persistent objects in parse.com is just use the following Lua functions: