MrStahlfelge / gdx-gamesvcs

Easy integration of gameservices in your libGDX game: Google Play Games, Apple Game Center, Amazon GameCircle and more
Apache License 2.0
113 stars 20 forks source link

GPGS HTML/Desktop: saveGameState should respect progressValue #19

Closed MrStahlfelge closed 4 years ago

MrStahlfelge commented 6 years ago

Current implementations of GPGS on HTML and Desktop ignore the progressValue parameter of saveGameState. From the JavaDoc:

progressValue A value indicating player's progress. Used for conflict handling: if game state already saved is higher than this value, the gameState is not saved

The value should be saved in Drive's custom properties and checked before saving. https://developers.google.com/drive/v3/web/properties

MrStahlfelge commented 4 years ago

Closing this as desktop is not supported by Google any more.