12 মিনিট

Player Platform ও SDK v1.1

Capability, identity, profile, run, error ও migration।

Capability-first integration

Game-এ ব্যবহৃত optional capability-ই শুধু request করুন। Host approved subset ফেরত দেয়; unavailable module gameplay বন্ধ করবে না।

<script src="https://cdn.games.devs3.pro/sdk/v1.1/d3-games-sdk.js"></script>

const result = await D3Games.init({
  gameId: "your-game-slug",
  gameVersion: "1.0.0",
  capabilities: ["identity", "profile", "runs"]
});

Error ও retry

  1. 1.Message নয়, D3GamesError code ব্যবহার করুন।
  2. 2.শুধু retryable true হলে retry করুন।
  3. 3.Network, 429 ও 5xx-এ SDK একটি bounded retry দেয়।
  4. 4.AUTH_REQUIRED-কে login opportunity হিসেবে নিন।

v1 migration

Lifecycle, ad, measure, event বা legacy D3SDK call বদলাতে হবে না। v1.1 pin করে optional module ধাপে ধাপে নিন।