SiliconGhetto Engine API
    Preparing search index...

    Function load

    • Load previously saved data from localStorage.

      Parameters

      • key: string

        Storage key (same key used with save, without the "sg_" prefix)

      Returns any

      The parsed data, or null if not found or corrupted

      const hs = sg.load('highscore');
      if (hs) { console.log('Best:', hs.score); }