logo
By Lawrence

5 minutes

One Source of Truth for the Table

The slab you laid measures 16 by 33.2. So does the back wall you haven't built. So does the camera's framing distance, the plunger's drain line, and the rectangle the table builder is allowed to spawn inside. That is five copies of two numbers, spread across five components written by people who never met, and the moment you decide the table should be wider, four of them are wrong. This lesson hands those two numbers to a single owner and gives it a way to shout when they change.

Install the pinball components

PinballTable is a marketplace component, not part of the free arcade core, so it has to come down into your project. Pull it and its layout partner in one go:

bjs download PinballTable
bjs download PinballLayout

Each lands as real source under your project's components folder — the component, the System, its tests, and its meta.json. The scaffold's src/registry.ts globs that folder, so the name PinballTable in scene JSON resolves with no wiring on your part.

Continue reading

Unlock the Full Course

Every lesson, the runnable examples, and the finished build — yours to keep.

$9one-time

Was this page helpful?

We read every note — tell us what's working and what isn't.

↑↓ NavigateEnter SelectEsc CloseCtrl+K Open Search