Help

SDK changelog

Download the latest file from arcade-sdk.js. Older methods keep working in newer versions.

Platform · 23 October 2026

  • Each uploaded game now runs on its own origin and can use localStorage, sessionStorage, IndexedDB and Cache Storage. The storage belongs to that game only and stays in the player's browser. Engine saves such as Unity PlayerPrefs and Godot user:// now persist in that browser. SDK saves are still recommended for progress that follows a signed-in player across devices. See Browser storage.
  • setDebug(true) is now remembered inside the Smaz Games player as well as in local test mode.

0.2.0 · 23 October 2026

Added:

  • init(options) with debug and captureErrors. init() now also returns environment, settings, params and game.
  • Lifecycle: loadingStart, loadingProgress, loadingStop and happyMoment.
  • Ads: showRewardedAd, showMidgameAd, isAdBlocked, requestBanner and clearBanner. Ad results now include a reason when no ad played.
  • Player: getUser() returns playerId, username, avatar and minor. New promptSignIn and getPlayerToken, with a public key set for verifying tokens on your server.
  • Key-value data: data.getItem, data.setItem, data.removeItem, data.clear and data.keys.
  • Settings: getSettings, onSettingsChange, getSystemInfo and isMobile.
  • Links and invites: getURLParam, getInviteLink, shareInvite, showInviteButton, hideInviteButton and openExternalLink.
  • Multiplayer helpers: multiplayer.createRoomCode, getRoomCode, inviteLink, share, updateRoom and leaveRoom.
  • Errors and events: captureError, setGameContext and track.
  • Local test mode parameters: smazDebug, smazUser, smazMinor and smazAds.
  • window.SmazGames as another name for window.OpenArcade.

Changed:

  • Ad requests time out after 2 minutes instead of 15 seconds, so a long rewarded ad is not reported as a failure.
  • onHost listeners that throw no longer stop other listeners.
  • getUser() no longer returns the account ID (id). Use playerId, which is different in every game.

Unchanged: load, save, importGuest, gameplayStart, gameplayStop, requestAd and onHost.

0.1.0

First release: init, getUser, load, save, importGuest, gameplayStart, gameplayStop, requestAd('rewarded') and onHost.