/* ===================================================================== HOOPS BLITZ — Sport on Earth Games arcade Single-file canvas game in the Family Arcade house style. EMBED (inline):
Or serve the matching hoops-blitz.html wrapper in an iframe. CONTROLS (tap/click the court, or press Space): Tap 1 — start the aim sweep. Tap 2 — lock your aim. Tap 3 — lock the power (green zone) and shoot! The hoop slides along its rail (and bobs late in the game) — lead it. The defender jumps: if he swats your ball, the combo dies. SCORING: 90 seconds. Make = 2 pts. Consecutive makes build a combo: combo 3-5 pays 4 pts a make, combo 6+ pays 6. Miss or a block resets the combo. ===================================================================== */ (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 "hoops-blitz" added to its GAMES list and ARCADE_KV bound — the fetch calls below already mirror that API exactly: GET /api/arcade/leaderboard?game=