haxegon / zeedonk

Haxegon + Puzzlescript = Zeedonk!
http://www.zeedonk.net
12 stars 2 forks source link

Weird feature idea: Imports #416

Open TerryCavanagh opened 8 years ago

TerryCavanagh commented 8 years ago

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:

increpare commented 8 years ago

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.