Arkadium SDK
This library lets you integrate your game with Arkadium SDK.
Installation
$ npm install @arkadiuminc/sdk
Usage
import { getInstance, Env } from '@arkadiuminc/sdk';
const Game = {
pause: () => console.log('Game paused!'),
resume: () => console.log('Game resumed!'),
};
async function main() {
Game.pause();
const { ads } = await getInstance(Env.DEV);
await ads.showInterstitialAd();
Game.resume();
}
main();
using the sandbox with a local game sdk
cd arkadium-sdk
http-server . -p 8080 -c-1 --cors
npm run build-fast
cd arkadium-dev-portal
# in the sandbox.tsx file, change SDK_PATH to 'http://localhost:8080/dist/arena/arena-sdk.umd.js'
npm run start
# visit the dev portal sandbox page: http://localhost:3511/sandbox
set the following fields:
Reference documents