rgbds-live icon indicating copy to clipboard operation
rgbds-live copied to clipboard

Document how to load code in the editor

Open ISSOtm opened this issue 4 years ago • 4 comments

Apparently you can pass URLs to text files, and I think base64 is an option too? Can this be documented in the README, so that it's easier to use rgbds-live externally & programmatically?

ISSOtm avatar May 25 '21 10:05 ISSOtm

I agree. RGBDS live already supports loading fileds from URLs (github gists)

Relevant part of the code: https://github.com/gbdev/rgbds-live/blob/master/www/js/storage.js#L32

avivace avatar Sep 13 '23 12:09 avivace

there are 3 options

  • #https://gist.github.com/.... load all files from gist example
  • #https://link/to/file/... loads single file as main.asm example
  • #LZString.compressToEncodedURIComponent - loads hash as compressed LZString and decompress usingLZString,decompressFromEncodedURIComponent example

SelvinPL avatar Sep 24 '24 12:09 SelvinPL

Should we have a mini rgbds-live website? or put this in some kind of help dialog?

avivace avatar Sep 24 '24 12:09 avivace

maybe redesign about menu to show a dialog with tabs like info uses help

SelvinPL avatar Sep 24 '24 12:09 SelvinPL