planeAssets
The toy 767's meshes, paint atlas and materials, as durable assets — and the one registry that says what the toy is made of.
planeAssets
The toy 767's meshes, paint atlas and materials, as durable assets — and the one registry that says what the toy is made of.
PlaneAssets.parts is that registry: a row per part naming the rig name it
answers to, the mesh asset it wears, the material that paints it, the geometry
function that makes it, and whether a hit can break it off. art.plane loops
that table to build the toy and bake() loops the same table to write the
meshes, so a part is declared once and appears in both by being added here.
bake() writes eleven assets under game/art — the toy767_atlas texture,
the toy767_paint and toy767_metal materials, and eight meshes — so the toy
is content the world publishes rather than geometry rebuilt on every load.
ensure() bakes only what is missing, checking the first part and the last, so
a bake interrupted part way through is not mistaken for a finished toy.
Consumed by game.art.plane (which builds the airframe's children from it) and
by the flight slice indirectly, through the loose copies it spawns when a wing
or an engine comes off.
Scoped to this part · feeds back into the world's score.