() => { return { //https://unpkg.com/kaplay@3000.1.17/dist/kaboom.cjs // https://unpkg.com/kaplay@3001.0.0-alpha.21/dist/kaplay.js modules: ["https://unpkg.com/kaplay@3001.0.0-alpha.21/dist/kaplay.js", "story-api.js"], parser: 'ink', script: () => { // import kaboom from "https://esm.sh/kaboom"; // works on type="module" console.log(window) const k = kaplay(); k.loadSprite("bean", "public/icon.png") // define a scene k.scene("main", () => { k.add([ k.pos(200, 100), k.sprite("bean"), ]); k.add([ k.text("ohhimark fdfg"), ]) }); const story = new Story({ data: 123, parser: inkjs }) story.advance() //start the game k.go("main"); } } }