/* ===================================================================== AROUND THE WORLD — 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 each shot. RULES: shoot from 5 spots around the arc, in order (left corner, left wing, top, right wing, right corner). A sweeping needle sets your release — stop it in the green to make the shot. A make advances you one spot; a miss sends you back one spot, unless a chance token covers you (2 per game — the next shot after a miss is a free "chance" shot that can't send you back). 90 seconds on the clock. SCORING: make = 2 pts (final spot = 3) + 1 pt per second left when you clear the last spot. ===================================================================== */ (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 "around-the-world" added to its GAMES list and ARCADE_KV bound — the fetch calls below already mirror that API exactly: GET /api/arcade/leaderboard?game=