SDK changelog
The current SDK is 1.1.0. The script at /sdk/v1.js always serves
the newest 1.x release, and 1.x releases only add things: a game built for
1.0 keeps working unchanged. Bundler users can upgrade @gems-arcadia/sdk
whenever they like; GemsArcadia.version tells you which one is loaded.
v1.1.0 · ACHIEVEMENTS
ADDED
unlockAchievement(key)unlocks one of your game's achievements for the player and resolves{ ok: true, achievement, unlocked, newlyUnlocked, unlockedAt, testMode }or{ ok: false, reason }. Never rejects.unlockAchievementbridge request. The message protocol stays at version1.- Keys are checked in the SDK first: anything that isn't lower-case letters, digits,
-and_(max 48 characters) resolvesINVALID_KEYwithout a round trip. - Types
AchievementUnlock,UnlockedAchievement,UnlockAchievementResultandUnlockAchievementFailurein the ESM build. - Mock mode answers
unlockAchievement()withtestMode: trueandnewlyUnlocked: false, so you can wire it up without the arcade.
v1.0.0 · FIRST COIN
ADDED
init(),insertCoin(),getBalance(),submitScore(score),ready(),on()/off()and themockhelpers.- Events
coinInserted,balanceChanged,pauseandresume. - Script build at
/sdk/v1.js(globalGemsArcadia) and the@gems-arcadia/sdkESM package with types.