Changes
Social
- Added post rewards —
IsPostRewardSupported, GetPostReward and OnGetPostRewardCompleted, with the rewards read through PostRewardsCount, PostRewardId, PostRewardAmount, PostRewardType and PostRewardsAsJSON
CreatePost takes an optional Payload — the game's own string for that one post, handed back through PlatformPayload when someone opens it
Share, InviteFriends and CreatePost accept the id of an entry declared in playgama-bridge-config.json (social.shares, social.invites, social.posts), so the text, image and link live in the config instead of the events
Platform
- Added
PlatformLaunchSource — tells whether the game was opened from a notification or from one of its own posts
- Added
PlatformDataValue and PlatformDataAsJSON — the launch parameters the platform passed to the game, including postId when it was opened from a post
Platforms
- Reddit — posts, sharing as a comment, leaderboards, server time and post rewards
- Samsung Instant Plays — in-app purchases, loading progress, GRAC rating badge
- Added the Playgama Sandbox platform
Changed
- Playgama shows payment prices resolved by the platform
- Playgama cloud saves now work for guest players
How to use the new features
Post rewards let a game reward two people: the player who opened the game from a post,
and the author of that post, once other players come through it. The rewards themselves
are declared per post in playgama-bridge-config.json, so the events stay simple:
Create Post — Id: "gift", Payload: ""
Then, on startup:
Condition: Is Post Reward Supported
Action: Get Post Reward
Event: On Get Post Reward Completed
Repeat PostRewardsCount times:
Add PostRewardAmount(i) to the variable named PostRewardId(i)
The list is empty when there is nothing to grant, and the platform backend decides who is
rewarded and when, so the game only reads what it gets.
PlatformLaunchSource and PlatformDataValue("postId") tell the game it was opened from
one of its own posts and which post that was, which is what makes level sharing possible:
put the level into the payload of Create Post, then read it back with PlatformPayload.
Checklist
Example file
bridge-gdevelop-examples.zip
Extension file
PlaygamaBridge.zip
Changes
Social
IsPostRewardSupported,GetPostRewardandOnGetPostRewardCompleted, with the rewards read throughPostRewardsCount,PostRewardId,PostRewardAmount,PostRewardTypeandPostRewardsAsJSONCreatePosttakes an optionalPayload— the game's own string for that one post, handed back throughPlatformPayloadwhen someone opens itShare,InviteFriendsandCreatePostaccept the id of an entry declared inplaygama-bridge-config.json(social.shares,social.invites,social.posts), so the text, image and link live in the config instead of the eventsPlatform
PlatformLaunchSource— tells whether the game was opened from a notification or from one of its own postsPlatformDataValueandPlatformDataAsJSON— the launch parameters the platform passed to the game, includingpostIdwhen it was opened from a postPlatforms
Changed
How to use the new features
Post rewards let a game reward two people: the player who opened the game from a post,
and the author of that post, once other players come through it. The rewards themselves
are declared per post in
playgama-bridge-config.json, so the events stay simple:Then, on startup:
The list is empty when there is nothing to grant, and the platform backend decides who is
rewarded and when, so the game only reads what it gets.
PlatformLaunchSourceandPlatformDataValue("postId")tell the game it was opened fromone of its own posts and which post that was, which is what makes level sharing possible:
put the level into the payload of
Create Post, then read it back withPlatformPayload.Checklist
Example file
bridge-gdevelop-examples.zip
Extension file
PlaygamaBridge.zip