Guide
Add cloud saves
A minimal integration path for existing save and load flows.
- Inspect and preserve the existing game save model.
- Vendor the unchanged official SDK at
3jsgames-sdk/v1/storage.js. - Check
isAvailable(), then callget,set, ordelete. - Handle
AUTH_REQUIREDand other stable error codes. - Test both standalone and embedded behavior.
await ThreeJSGames.storage.set("savegame", {
level: 4,
coins: 120
});See the complete Cloud Storage contract before shipping.