/* ===================================================================== FREE THROW FRENZY — Sport on Earth Games arcade Single-file canvas game in the Family Arcade house style. EMBED (inline):
Or serve the matching free-throw-frenzy.html wrapper in an iframe. CONTROLS: tap the court, click, or press Space to release each shot. Pure timing: stop the needle inside the green for a make — dead center for a perfect swish. The needle speeds up and the green shrinks every shot. 10 shots total. SCORING: make = 1 pt • perfect swish = 2 pts. Max score 20. ===================================================================== */ (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 "free-throw-frenzy" added to its GAMES list and ARCADE_KV bound — the fetch calls below already mirror that API exactly: GET /api/arcade/leaderboard?game=