Platform
Resources
Pricing
Sign in
Get started
Andrew Wooldridge
📜JavaScript developer. 🐲RPG fan. 📚Storyteller and 🕹game developer. 👨Father and Husband.
Workspace
Fork
Published
Kaboom Examples
By
Andrew Wooldridge
Edited
Jun 6, 2021
6 forks
1
Insert cell
Insert cell
Insert cell
<
canvas
id
=
"kb"
>
</
canvas
>
Insert cell
{
let
K
=
KABOOM
(
{
width
:
480
,
// width of canvas
height
:
480
,
// height of canvas
canvas
:
document
.
getElementById
(
"kb"
)
,
}
)
;
K
.
scene
(
"main"
,
(
)
=>
{
// ...
const
birdy
=
K
.
add
(
[
K
.
sprite
(
"birdy"
)
,
]
)
;
}
)
;
K
.
loadSprite
(
"birdy"
,
await
FileAttachment
(
"kaboom.png"
)
.
url
(
)
)
;
K
.
start
(
"main"
)
;
}
Insert cell
FileAttachment
(
"kaboom.png"
)
.
image
(
)
Insert cell
FileAttachment
(
"kaboom.png"
)
.
url
(
)
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.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML