This library lets you integrate your game with Arkadium SDK.
$ npm install @arkadiuminc/sdk
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();