简体   繁体   中英

Android. Google Play Services Saved games API

I'm on the way to implement the Cloud Backup of progress that player achieved in the game so Saved Games function provided by Google Play Services looks like what I need.
After reading this documentation page about Saved Games I realized that it is not exactly what I need. Following the guide I have to show the new Activity for user where he's saving/loading the game progress, but I dont want to do that.
According to my idea no additional activities should be displayed, I want to do this on the background as non-visible for player task. Is there any way to do this the way I want?
I would appreciate any ideas. Thank you.

I think Google Play Games support automatic saving and loading. According to this video: Game On!: Cloud Save

7:26 of the video:

"the game does save to the cloud automatically"

and 7:55 of the video:

"And I'm just going to force a Cloud Load here by going into the Cloud Load menu. Notice that normally this would happen automatically"

What you have read in the document is the force save and load that can be seen in the Cload Save video.

If you notice:

Loading Saved Games

  • To improve your game's performance, you are encouraged to perform saved game loading as a background operation rather than in the main thread. One way to do this is by using an AsyncTask and override its doInBackground() method to open the saved game.

Here are github that can help you with save games implementation:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM