Is it possible to save levels in google play games services?

I already know about ratings and saved games in google play games services and I use it in my game. Other than that - I just want to save the current game user level for using the google cloud api. Are there any easy methods?

Also, is there a chance to get both the list of unlocked user levels and the current level?

+3


source to share


1 answer


If I understand your requirements correctly, the Saved Games API can store the information you want. The API is basically blob storage. So if you serialize the player's current level, the unlocked level list, and any other state information, you can download it again (even from a different device).



You can reference the CollectAllTheStars2 sample , which saves the layered state of the game by serializing Then json stores the bytes using the saved games API.

+1


source







All Articles