Setup
Last updated
Last updated
JS Core is the heart of the SDK, containing all the core logic. Plugins for game engines (Unity, Godot, Construct) are merely overlays on top of JS Core. JS Core can be used directly without any plugins in web engines (PlayCanvas, PixiJS, Phaser, etc.).
Download the playgama-bridge.js
file from the , add it to your project, and include it in index.html
:
When the game is launched on supported platforms, the SDK will automatically load the necessary platform scripts. On unsupported platforms, no errors will occur; a mock platform will be used, and any request will return false
, reject
, etc.
Download the playgama-bridge-config.json
file from the , and add it to your project. There you can set up various identifiers and in-game purchases.
Before using the SDK, you need to call the initialization method and wait for it to complete.