Reputation: 242
I already know about leaderboards and saved games on google play games services and I'm using it on my game. Except with these - I just want to store my game user's current level to using google cloud api. Is there any easy methods?
Also, is there any chance to get both the user's unlocked levels list & current level?
Upvotes: 3
Views: 1235
Reputation: 4572
If I understand your requirements correctly, the Saved Games API can store the information you want to. The API is basically a blob store. So if you serialize the player's current level, unlocked level list and any other state information, you can load it again (even from a different device).
You can refer to the sample CollectAllTheStars2, which saves a multi-level game state by serializing to json then saving the bytes using the Saved Games API.
Upvotes: 2