From 5f2dbdef5942851383cae2f0a97930640e2370d5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bjo=CC=88rn=20Ritzl?= This extension provides functions for interacting with Google Play Game Services. The extension is only supported for Android. The source code can be viewed at: https://github.com/defold/extension-gpgs In order to use Google Play Game Services your application needs to be added to the Google Play store. It doesn't have to be published but it must be registered. Read more about how to sign up for and use the Google Play store in the official documentation. Once the application is registered you also need to enable Google Play Game Services for the application. Follow the official documentation to enable Google Play Game Services. To use this library in your Defold project, add the following URL to your We recommend using a link to a
- Starting Defold 1.2.162 this extension has one more dependency:
- Add the following section into your game.project file:
-
- Where app_id is the 12 or 13 digit Application ID from the Google Play Console, found under Development Tools > Services & APIs and Google Play game services. Where use_saved_games indicates if the Game Saves service should be used (0 is disabled, 1 is enabled).{{ item.name }}
+{{ item.desc }}
+{% endfor %}
+
+## Enums
+
+
+{% for module in site.data.api %}
+ {% for item in module.members %}
+ {% if item.type contains 'number' %}
+
+
+
+
+
+ {% endif %}
+ {% endfor %}
+{% endfor %}
+
+{{ module.name }}.{{ item.name }}
+ {{ item.desc | markdownify | replace: "[icon:attention]","
+
⚠️"}}
+
+## Functions
+
+
+{% for module in site.data.api %}
+ {% for item in module.members %}
+ {% if item.type contains 'function' %}
+
+
+{% for module in site.data.api %}
+ {% for function in module.members %}
+ {% if function.type contains 'function' %}
+
+
+ {% endif %}
+ {% endfor %}
+{% endfor %}
+
+{{ module.name }}.{{ item.name }}()
+ {{ item.desc | truncate: 80 }}
+
+{% if function.parameters %}
+{{ module.name }}.{{ function.name }}({% for param in function.parameters %}{{param.name}}{% unless forloop.last %}, {% endunless %}{% endfor %})
+
+
+{% endif %}
+{% if function.returns %}
+
+
+
+
+ {% for param in function.parameters %}
+ Parameter
+ Type
+ Description
+
+
+ {% endfor %}
+
+
+ {{ param.name }}
+ {% if param.optional %}
+ (optional)
+ {% endif %}
+
+
+ {{ param.type }}
{{ param.desc | markdownify }}
+ {% if param.type == "function" %}
+ {% include type-function.md params=param.parameters %}
+ {% endif %}
+ {% if param.type == "table" %}
+ {% include type-table.md fields=param.members %}
+ {% endif %}
+
+
+
+
+{% endif %}
+{{ function.desc | markdownify | replace: "[icon:attention]","
+
+
+
+ Return value
+ Type
+ Description
+ Returns
+ {% for return in function.returns %}
+
+
+ {% endfor %}
+
+ {{ return.name }}
+
+ {{ return.type }}
{{ return.desc | markdownify }}
+
⚠️" | replace: "[type:string]","string
" | replace: "[type:number]","number
" | replace: "[type:table]","table
" | markdownify}}
+
+{% if function.examples %}
+Examples
+{% for example in function.examples %}
+{{ example.desc | markdownify }}
+{% endfor %}
+{% endif %}
+Defold Google Play Game Services API documentation
- Platforms
- Source code
- Google App Setup
- Defold setup
- game.project
dependencies:
- https://github.com/defold/extension-gpgs/archive/master.zip
-
-
- zip
file of a specific release.https://github.com/defold/extension-gps
- Check `game.project` of the release you are using to figure out the appropriate release of `extension-gps`.
-
-
- game.project
-
- [gpgs]
-
-
app_id = 1234567890
-
use_saved_games = 1
-
- API
-
+ {{ item.name }}
-{{ item.desc }}
-{% endfor %}
-
-## Enums
-
-
-{% for module in site.data.api %}
- {% for item in module.members %}
- {% if item.type contains 'number' %}
-
-
-
-
-
- {% endif %}
- {% endfor %}
-{% endfor %}
-
-{{ module.name }}.{{ item.name }}
- {{ item.desc | markdownify | replace: "[icon:attention]","
-
⚠️"}}
-
-## Functions
-
-
-{% for module in site.data.api %}
- {% for item in module.members %}
- {% if item.type contains 'function' %}
-
-
-{% for module in site.data.api %}
- {% for function in module.members %}
- {% if function.type contains 'function' %}
-
-
- {% endif %}
- {% endfor %}
-{% endfor %}
-
-{{ module.name }}.{{ item.name }}()
- {{ item.desc | truncate: 80 }}
-
-{% if function.parameters %}
-{{ module.name }}.{{ function.name }}({% for param in function.parameters %}{{param.name}}{% unless forloop.last %}, {% endunless %}{% endfor %})
-
-
-{% endif %}
-{% if function.returns %}
-
-
-
-
- {% for param in function.parameters %}
- Parameter
- Type
- Description
-
-
- {% endfor %}
-
-
- {{ param.name }}
- {% if param.optional %}
- (optional)
- {% endif %}
-
-
- {{ param.type }}
{{ param.desc | markdownify }}
- {% if param.type == "function" %}
- {% include type-function.md params=param.parameters %}
- {% endif %}
- {% if param.type == "table" %}
- {% include type-table.md fields=param.members %}
- {% endif %}
-
-
-
-
-{% endif %}
-{{ function.desc | markdownify | replace: "[icon:attention]","
-
-
-
- Return value
- Type
- Description
- Returns
- {% for return in function.returns %}
-
-
- {% endfor %}
-
- {{ return.name }}
-
- {{ return.type }}
{{ return.desc | markdownify }}
-
⚠️" | replace: "[type:string]","string
" | replace: "[type:number]","number
" | replace: "[type:table]","table
" | markdownify}}
-
-{% if function.examples %}
-Examples
-{% for example in function.examples %}
-{{ example.desc | markdownify }}
-{% endfor %}
-{% endif %}
-game.project
dependencies:
+
+ https://github.com/defold/extension-gpgs/archive/master.zip
+
+We recommend using a link to a zip file of a [https://github.com/defold/extension-gpgs/releases](specific release).
+
+# Dependencies
+
+The extension has the following dependencies:
+
+ https://github.com/defold/android-base-extensions/releases/download/1.0.0/gps-games-17.0.0.zip
+ https://github.com/defold/android-base-extensions/releases/download/1.0.0/gps-base-16.1.0.zip
+ https://github.com/defold/android-base-extensions/releases/download/1.0.0/support-v4-27.0.2.zip
+
+## Google App Setup
+In order to use Google Play Game Services your application needs to be added to the Google Play store. It doesn't have to be published but it must be registered. Read more about how to sign up for and use the Google Play store in [https://support.google.com/googleplay/android-developer/answer/6112435](the official documentation).
+
+Once the application is registered you also need to enable Google Play Game Services for the application. Follow the official documentation to [https://developers.google.com/games/services/console/enabling](enable Google Play Game Services).
+
+## Defold Setup
+
+### game.project
+Add the following section into your game.project file:
+
+ [gpgs]
+ app_id = 1234567890
+ use_saved_games = 1
+
+Where `app_id` is the 12 or 13 digit Application ID from the Google Play Console, found under Development Tools > Services & APIs and Google Play game services.
Ib$bEnz`M!ZIW*cO~rbFEN~vumTAy
zT?yO#6BcG9oP&f_u7o>*V(2#RMq`K*t+_3Me(*Q*@r3Xc;4$!o@f6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