Examples
SDK diagnostic examples
Small reference snippets plus testable developer fixtures.
Cloud Storage operations
await ThreeJSGames.storage.set("savegame", {
level: 4,
coins: 120
});
const save = await ThreeJSGames.storage.get("savegame");
await ThreeJSGames.storage.delete("savegame");Cloud Storage diagnostics
The reference game at test-games/game-data-diagnostics demonstrates SDK availability, Save, Load, Delete, and error behavior without exposing private platform context.
Multiplayer diagnostics
The fixture at test-games/multiplayer-diagnostics is designed for two independent authenticated browser profiles. It demonstrates private codes, Quick Match, public usernames, participant state, custom events, shared host state, connection states, leave, and host migration.
Use it with the complete Multiplayer SDK Beta contract.