/* ===================================================================== SPORT ON EARTH PINBALL — Sport on Earth arcade Single-file canvas game in the Family Arcade house style. Real pinball: plunger lane, gravity, bumpers, slingshots, flippers, rollover lanes and a multiball bonus — on a table themed for the SPORT you pick: twelve sports, each with its own table colours (primary/secondary below) and its own ball, drawn in-code. EMBED (inline):
CONTROLS: hold Space / ↓, hold the PLUNGE button, or press-and-hold in the plunger lane to pull the plunger back — release to launch. Flippers: Z (left) and / (right), hold the mouse on the left/right half of the lower table, tap the lower-left / lower-right of the table on touch, or hold the ◀ ▶ flipper buttons. RULES: 3 balls per game. Pop bumpers 100 pts, slingshots 50, rollover lanes S-O-E 50 each, standup targets 50. Light all three S-O-E rollovers, or tag all 3 bumpers inside 4 seconds, to light MULTIBALL (a second ball joins; all scoring ×2 while two balls are live). Drain = ball lost. SCORING (leaderboard): final score when ball 3 drains. ===================================================================== */ (function () { "use strict"; /* ================= LEADERBOARD BACKEND — UPGRADE HOOK ================= Default: LOCAL board (localStorage top-10) so the game runs standalone. To switch to the shared family KV leaderboard later, set KV_ENABLED to true. The site must then serve the paper's functions/api/arcade.js with "pinball" added to its GAMES list and ARCADE_KV bound — the fetch calls below already mirror that API exactly: GET /api/arcade/leaderboard?game=🕹️ Plunge: hold Space / ↓, hold the plunger button, or press-hold in the right-hand lane, then release. Flippers: Z and / keys, mouse-hold on either half of the lower table, touch the lower-left / lower-right of the table, or the flipper buttons. Bumpers 100, slingshots & targets 50, rollovers S-O-E 50 each. Tag all 3 bumpers within 4 seconds — or light S-O-E — for MULTIBALL (2 balls, scoring ×2). 3 balls per game.
' + '