Weird feature idea: Imports
TerryCavanagh opened this issue · comments
Support importing multiple scripts! The web player would work by simply appending everything together as one scriptfile. Notation would be something like this:
import(6d0052de6ec12365acb7); //Or whatever the github url is for the script you want to include.
We've talked about this briefly in the past and I was basically against it - but I thought of a really good use case this evening that's changed my mind about it: Tools.
KLIK AND ZEEDONK!
You could make a game making tool in Zeedonk itself, which outputs a simple set of variables and strings. You could then use Zeedonk's sharing capabilities to share games with this tool!
Example cases:
- Script one is a visual novel script file, the imported script is the engine which makes it run.
- People could make Zeedonk libraries and assets packs.
I'm not particularly in favour of an import command per se, but implicit above (based on a conversation I had with terry at least) is a function like
Editor.upload(dat):String
that returns a gist id (having uploaded the string and created a gist with one). Which would be interesting to have.