This extension for GDevelop has NOT been tested: its purpose is to save a backup of game data using Google Play Services.
The extension uses a NON-updated Cordova plugin: it should only be used for testing purposes and as a foundation in case you find updated and fully functional Cordova plugins!
GOOGLE BACKUP EXTENSION FOR GDEVELOP
How ti Install:
1. Download the Extension
- Obtain the extension file (.json) from the provided link.
2. Add to GDevelop
- Open your project in GDevelop.
- Go to the Project Manager on the right panel.
- Under Extensions, click on Add a new extension.
- Choose Import Extension and select the .json file you downloaded.
How to Use it
- Declare the global variable SAVE_BACKUP as a string (e.g., with an initial value of “”).
- Declare the global variable LOAD_BACKUP as a string (e.g., with an initial value of “”).
- Declare the global variable SAVE as a Structure (it can contain sub-variables and arrays).
- When SAVE_BACKUP == “START SAVING”, use the action ACTION_SAVE_GAME_TO_GOOGLE.
- The structured content of SAVE is converted into a JavaScript object and sent to the Cordova plugin to save it on Google Play Games (Snapshots).
- When LOAD_BACKUP == “LOAD BACKUP”, use the action ACTION_LOAD_GAME_FROM_GOOGLE.
- The Cordova plugin is called to load the data from Google Play Games and then reconstruct the corresponding sub-variables in SAVE.