3JS Games
Browse documentation

Examples

Cloud Storage examples

Small reference snippets plus the repository's diagnostic implementation.

Basic operations

await ThreeJSGames.storage.set("savegame", {
  level: 4,
  coins: 120
});

const save = await ThreeJSGames.storage.get("savegame");

await ThreeJSGames.storage.delete("savegame");

Diagnostics game

The reference game at test-games/game-data-diagnostics demonstrates SDK availability, Save, Load, Delete, and error behavior without exposing private platform context.

Use it as an internal/reference implementation and pair it with the diagnostic prompt.