📚 Encyclopedia

Games & Graphics · updated 2026-10-13

Speedrun timers, medals, leaderboards, and anti-cheat

speedrunleaderboardmedalstimeranti-cheatux

The meta-game around a speedrun level: how to show time, grade it, rank it, and keep the boards honest. Researched for Run and partly built there.

Timer

Medal ladder

Bronze (complete) < Silver (~80% of casual time) < Gold (~60%, needs the optimal route) < Platinum (~45%, good execution) < Diamond (~35% or the developer's best). Show medals on level select and track "all golds" style meta goals. Each tier should require different play, not just faster play. Represent medals with an enum, not strings.

Leaderboard UX (biggest wins first)

  1. Post-run rank: "#47 / 1,203 (Top 4%)", PB delta, 3-5 nearby entries, and "0.31 s behind PlayerX (#46)". Run's API returns rank and total_players from score submission.
  2. Pinned own row at the bottom, accent tinted, visible at any scroll position; highlight the player's row in lists ("YOU" badge).
  3. "Around me" view (ranks N-5..N+5) by default; rivals just above are concrete targets.
  4. Ghost play buttons on entries that have ghost data.
  5. Polish: staggered row slide-in (30-50 ms per row, under 500 ms total), PB shimmer, pull-to-refresh instead of a button.
  6. Recency and activity: "set 2 days ago", attempt counts, "X players completed this". Colors: gold #FFD700, silver #C0C0C0, bronze #CD7F32, ahead/improvement #44FF88, behind #FF6644. Anti-patterns: blocking spinners (show cached, refresh in background), forcing a wait before the retry button, confetti on the leaderboard, pagination buttons on mobile, live websocket updates (pull-to-refresh is enough).

Categories worth supporting: Any%, and restriction categories (no-dash, no-bike). Scopes: global, friends, personal history, nearby. Compute ranks on the server.

Anti-cheat, in priority order

  1. Server-side bounds: reject impossible times (at minimum a sane range; ideally a minimum derived from level geometry and max speed).
  2. Rate limiting on submissions.
  3. Replay verification: require ghost data and check consistency (true verification needs a deterministic sim, see Fixed-timestep game loop for browser games).
  4. HMAC score signing (raises the bar, not foolproof); nonces/timestamps against replay.
  5. Statistical outlier flags (top 0.1% on a first try).
  6. Admin moderation tools to view and delete suspicious scores.

What Run actually enforces (v0.8.85): time 0.2-36000 s, medal whitelist, coins 0-100000, ghost under 512 KB, level index range per endpoint, 60 score posts/min per user. Client-side cheats (Konami-code god mode etc.) taint the run so it is never submitted, and the taint persists while any sticky cheat stays enabled. See Slim 4 PHP APIs (and migrating from Limonade).

Community levels (Geometry Dash model)

Upload with name/description/difficulty; discovery tabs (trending, recent, most liked, featured); filters; likes and download counts; curator tiers; reports; lock rated levels against edits; mandatory playtest before publishing (Mario Maker).

See also

Linked from

Sources: run memory (research-speedrun-features.md, research-leaderboard-ux.md, session-v065-v075.md, session-v085.md, session-v078-v079.md)