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,IndexedDBand Cache Storage. The storage belongs to that game only and stays in the player's browser. Engine saves such as UnityPlayerPrefsand Godotuser://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)withdebugandcaptureErrors.init()now also returnsenvironment,settings,paramsandgame.- Lifecycle:
loadingStart,loadingProgress,loadingStopandhappyMoment. - Ads:
showRewardedAd,showMidgameAd,isAdBlocked,requestBannerandclearBanner. Ad results now include areasonwhen no ad played. - Player:
getUser()returnsplayerId,username,avatarandminor. NewpromptSignInandgetPlayerToken, with a public key set for verifying tokens on your server. - Key-value data:
data.getItem,data.setItem,data.removeItem,data.clearanddata.keys. - Settings:
getSettings,onSettingsChange,getSystemInfoandisMobile. - Links and invites:
getURLParam,getInviteLink,shareInvite,showInviteButton,hideInviteButtonandopenExternalLink. - Multiplayer helpers:
multiplayer.createRoomCode,getRoomCode,inviteLink,share,updateRoomandleaveRoom. - Errors and events:
captureError,setGameContextandtrack. - Local test mode parameters:
smazDebug,smazUser,smazMinorandsmazAds. window.SmazGamesas another name forwindow.OpenArcade.
Changed:
- Ad requests time out after 2 minutes instead of 15 seconds, so a long rewarded ad is not reported as a failure.
onHostlisteners that throw no longer stop other listeners.getUser()no longer returns the account ID (id). UseplayerId, 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.