game-sdk.js 334 B

123456789
  1. /**
  2. * Game Platform SDK
  3. *
  4. * window.GameSDK is injected by the platform before your bundle loads.
  5. *
  6. * GameSDK.gameId — string, this game's id
  7. * GameSDK.getPlayerName() — string, current player's display name
  8. * GameSDK.submit(score) — Promise<{ ok: true, rank: number } | { ok: false, error: string }>
  9. */