Published
Edited
Oct 17, 2018
5 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
PuzzleScript = require('puzzlescript@3.0/lib/webpack-output')
Insert cell
Insert cell
engine = {
// resize the table entry every time the level changes
const eventHandler = {
onLevelComplete: () => table.dispatchEvent(new CustomEvent("level-change"))
}

const engine = new PuzzleScript.TableEngine(table, eventHandler)
engine.setGame(gameSource, 0)
engine.start()
eventHandler.onLevelComplete() // resize the table cell
yield engine
}
Insert cell
Insert cell
Insert cell
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