Published
Edited
May 28, 2022
1 fork
Insert cell
Insert cell
Insert cell
cnv = html`<canvas class="game" height="320" width="480"></canvas>`
Insert cell
k = Kaboom({
global: false,
width: 480,
height: 320,
canvas: cnv,
background: [0,0,256]
})
Insert cell
main = {
k.scene("main", ()=> {
k.add([
k.text("oh hi", 32),
k.pos(100, 100),
]);
})

k.go("main")
}
Insert cell
//Kaboom = (await import('https://cdn.skypack.dev/kaboom@next?min')).default
Insert cell
Kaboom = (await import('https://unpkg.com/kaboom@2000.2.9/dist/kaboom.mjs?module')).default
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