Guide
Save settings
Keep a small group of JSON-compatible preferences under a stable key.
await ThreeJSGames.storage.set("settings", {
music: true,
effectsVolume: 0.8,
controls: "keyboard"
});Validate loaded settings and supply defaults for missing fields. Avoid storing large assets or sensitive information.