Simple plugin for games to be hosted on the Poki Platform (https://sdk.poki.com/)
Author: skymen, Avix Games
Construct Addon Page
Documentation
Made using CAW
To build the addon, run the following commands:
npm i
npm run build
To run the dev server, run
npm i
npm run dev
Property Name | Description | Type |
---|---|---|
Enabled | Whether the SDK is enabled | combo |
Debug on preview | Whether to enable debug mode | check |
Game ID | Enter the ID of the game here for the beacon to work | text |
Do beacon | Whether to send beacons to Poki | check |
Beacon interval | Number of seconds between beacons | integer |
Max beacons | Maximum number of beacons to send | integer |
Loading notification | When to notify the DOM that the game has finished loading | combo |
Automatic suspend | Automatically suspend the SDK when the game is suspended | check |
Suspend timeout | Number of seconds to wait before suspending the SDK | integer |
Action | Description | Params |
---|---|---|
Interstitial | Request an interstitial ad | Tag (string) |
Rewarded | Request a rewarded ad | Tag (string) |
Send Event | Send an analytics event | Category (string) Action (string) Label (string) |
Gameplay Start | Notify the SDK that the gameplay has started | |
Gameplay Stop | Notify the SDK that the gameplay has stopped | |
Loading End | Manually notify the SDK that the game has finished loading |
Condition | Description | Params |
---|---|---|
Last Rewarded Success | Last Rewarded Success | |
On Interstitial Complete | Triggered when an interstitial ad is completed | Tag (string) |
On Rewarded Complete | Triggered when a rewarded ad is completed | Tag (string) |
SDK Is Enabled | Check if the SDK is enabled | |
SDK Is Loaded | Check if the SDK is loaded |
Expression | Description | Return Type | Params |
---|---|---|---|
LastAdTag | Last Ad Tag | string | |
LastRewardedSuccess | Last Rewarded Success | number |