Skip to content

SDK overview ​

PlayNova provides JavaScript SDKs for games and host apps running on the platform.

Game SDK ​

For H5 games inside the PlayNova Web iframe:

html
<script src="/sdk/playnova-game-sdk-0.2.0.js"></script>
<script>
  PlayNova.ready();
  PlayNova.ads.showRewarded({ placement: 'revive' });
</script>

Key APIs:

APIDescription
pn.ready()Notify host that the game initialized
pn.score()Report session score
pn.achievement()Report achievement progress
pn.ads.showRewarded()Rewarded video with load→show flow
pn.ads.showInterstitial()Interstitial at natural breaks
pn.ads.showBanner() / hideBanner()Host banner control
pn.ads.preload()Preload ad inventory
pn.share()Share score via Web Share / clipboard

See Ads integration for the underlying postMessage contract.

App SDK ​

For PlayNova host pages embedding games:

Version history ​

Full changelog and download links are on the Developer SDK page.

PlayNova creator documentation