Mod Creation/Essentials: Difference between revisions

(Use SyntaxHighlight)
Line 204: Line 204:


Use <syntaxhighlight lang="js" inline>ctx.loadData</syntaxhighlight> to read and automatically parse a JSON resource.
Use <syntaxhighlight lang="js" inline>ctx.loadData</syntaxhighlight> to read and automatically parse a JSON resource.
''Comments in JSON are purely illustrative and not valid markup''


  <syntaxhighlight lang="js" line>// my-data.json
  <syntaxhighlight lang="js" line>// my-data.json
89

edits