/* ===================================================================== BUZZER BEATER — Sport on Earth Games arcade Single-file canvas game in the Family Arcade house style. EMBED (inline):
CONTROLS: tap the court, click, or press Space to release the shot. RULES: eight last-second scenarios — varying time, distance and defensive pressure. One shot each. A timing marker races back and forth across the bar while the scenario clock burns in real time; release with the marker inside the green to make it (dead center = perfect). If the clock hits zero before you shoot, the chance dies. SCORING: each scenario pays its difficulty — 2, 3 or 5 points. Max score 28. ===================================================================== */ (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 "buzzer-beater" added to its GAMES list and ARCADE_KV bound — the fetch calls below already mirror that API exactly: GET /api/arcade/leaderboard?game=