melonJS
    Preparing search index...

    Function getJSON

    • Get a loaded JSON file (a "json" asset, or the descriptor of an "aseprite" one), parsed.

      Parameters

      • elt: string

        the asset name

      Returns JSON

      the parsed content, or null if none is loaded under that name

      // a texture atlas: its image and its JSON descriptor share a name
      const atlas = new TextureAtlas(loader.getJSON("texture"), loader.getImage("texture"));