10 min read
HTML5 SDK integration
Install SDK v1 and implement lifecycle and engagement events.
Install and initialize
Load the pinned v1 SDK before game bootstrap. The /latest alias is for experimentation.
<script src="https://cdn.games.devs3.pro/sdk/v1/d3-games-sdk.js"></script>Lifecycle
Initialize once. Signal loading after required assets, start on real input, and stop for menus, pause, death, cutscenes, or level completion.
await D3Games.init({ gameId: "your-game-slug" });
D3Games.loadingFinished();
D3Games.gameplayStart(); // first player input
D3Games.gameplayStop("level_complete");Engagement events
Category, subject, and action must be non-personal, 1–64 characters, and contain neither / nor ^.
D3Games.measure("level", "1", "start");
D3Games.measure("level", "1", "complete");Never report money, ad impressions, email, username, or device identifiers. Revenue comes from verified provider records.