Reference
Engines
How to add the SDK in Construct 3, Phaser, PixiJS, Godot and Unity web builds.
Construct 3
Use the ARCADE addon: no code, just actions, conditions and expressions in your event sheets.
- Download arcade.c3addon.
- In Construct 3: Menu → View → Addon manager → Install new addon, then restart Construct.
- Add the ARCADE object to your project. It connects as the game starts.
- Use Submit score, Save data and Load data, Unlock achievement, Load leaderboard, Track event and Show ad, with a trigger for each result and On error with
ARCADE.ErrorCodewhen something fails.
In Construct's preview it runs in local mode: saves stay in the browser and scores are logged to the console.
Prefer code? Use the SDK from a script instead:
- Add arcade-sdk.min.js to the project's Files folder.
- Project Properties → Advanced → Script files: add it so it loads before the runtime (or add the script tag to
index.htmlafter export). - Use a Script action in an event sheet:
globalThis.arcade = new ArcadeSDK();
await globalThis.arcade.ready();
const saved = await globalThis.arcade.save.get('state');
if (saved) runtime.globalVars.Coins = saved.coins;await globalThis.arcade.save.set('state', { coins: runtime.globalVars.Coins });
globalThis.arcade.events.track('level_completed', { level: runtime.globalVars.Level });Phaser and PixiJS
Install with npm and create one SDK for the whole game (for example in your boot scene), then call it from scenes.
Godot (Web export)
Add the script tag to the export's HTML shell, then call it from GDScript with JavaScriptBridge.eval() or JavaScriptBridge.get_interface("ArcadeSDK").
Unity (WebGL)
Add the script tag to your WebGL template and call the SDK from a .jslib plugin. Compressed Unity builds (.br, .gz) are served with the right headers.
| Engine | Upload |
|---|---|
| Plain HTML5, Construct 3, Phaser, PixiJS | index.html at the top of the ZIP. |
| Godot | The Web export folder, zipped. |
| Unity | The WebGL build folder with index.html and Build/. |