() => { return { modules: [ // if a module is a web address, it can be included this way "https://unpkg.com/kaplay@3001.0.0-alpha.21/dist/kaplay.js", // this is how you can include the contents of other files from the list //'kaplay-dist.js', // <-- copy of kaplay.js can also be stored in the gist and imported like so // you can host a module on the same gist "test-local-module.js", 'test-includes-script.js' ], // if passed, inkjs or bondagejs will be included in the output parser: 'ink', // can be ink or yarn script: () => { // since we imported kaplayjs in the modules option, we can now use it like this to render to the Test tab const k = kaplay(); k.loadSprite("bean", "public/icon.png") k.scene("main", () => { k.add([ k.pos(200, 100), k.sprite("bean"), ]); k.add([ k.text("ohhimark fdfg"), ]) }); k.go("main"); // inkjs becomes available because we used parser: 'ink' option console.log({ inkjs }) // see test-includes-script.js where this is declared testMe(123); // see test-local-module.js where this is declared const myLocalModule = new TestLocalModule('works'); //myLocalModule.testCall() } } }