Published
Edited
Apr 11, 2021
1 fork
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
viewof b1 = button({value:"progress", description: "click to progress the story"})
Insert cell
{
b1;
if(theStory.canContinue){
return html`${theStory.Continue()}`
}
}
Insert cell
inkjs = require('inkjs')
Insert cell
theStory = new inkjs.Story(data)
Insert cell
data = ({"inkVersion":19,"root":[["^The mist of the rich green forest has hardly begun to burn away as the golden bright dawn sun peeks over the mountains in the distance. You sigh as you adjust the straps on your shoulders - holding your trusty backpack - and step through the dewy grass towards the cave entrance. Your leather boots grow cold and wet as the water seeps in, but you don't care. It has been a long journey to get here, and you are glad that it is almost over.","\n","^You look down at your ragged clothing. Your clothes seem like a cross between an out of work mercenary - with leather gear, a shortsword, and some nice fingerless gloves that have tiny studs on the knuckles, and a naturalist, with a green tunic, leggings, and all kinds of little bags of herbs and powders dangling from your waist belt.","\n",["done",{"#f":5,"#n":"g-0"}],null],"done",{"#f":1}],"listDefs":{}})
Insert cell
import {button} from "@jashkenas/inputs"

Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more