seriesoftubes/src/game/90-actions/98-pie-globe.js
Frederic Jung d3174600e7
Pie in the Sky: animated 3D globe for Pie Control, with a night view
An orthographic Earth on a 2D canvas (sticker look, plus a night view with stars,
city lights and terminator) showing a capped sample of each crust's pies, laser
links, pie-dish beams and launches. One rAF loop only while open (30 fps cap,
DPR <= 2, idle while hidden), nothing left behind once closed. Land comes from
LANDS_LL. The world map only gets a pink pie-dish badge at cities with a dish,
behind one null check per visible city when there are none.
2026-11-06 09:57:38 +01:00

4 lines
185 B
JavaScript

// The Pie Control globe's day/night switch (96-map/89-pie-globe.js). Display only: nothing in the save changes.
Object.assign(ACT,{
pieGlobeNight:()=>{pieGlobeNight(!PG.night);},
});