Files
OrbitTv/docs/house-scores.md
T
pauljdandClaude Opus 5.5 7b4e82a882 0.122.1 (versionCode 314): the Originals row never trails focus; Orbit Rush's rocks redrawn
- The Originals row scrolls itself: the focused card whole on screen at once (any running scroll
  dropped), the peek easing in over 140 ms; rapid or held presses and Reduce motion scroll at once.
  RowScrollTest checks the card is whole after every rapid press both ways.
- Asteroid Alley's rock: lumpy angular asteroids in three shapes and rotations, off-centre
  craters of different sizes, a darker rim (Paul: the round one with a dot looked wrong). The
  shield pickup is a shield shape, Double Stars two stars, the Forbidden gate three marks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 13:33:14 +00:00

5.3 KiB
Raw Blame History

0.121.0 (versionCode 312): house High Scores, the Rush rise/dive, the Originals row

Built on 0.120.0 (311, the sound kit).

High Scores across the rooms

Paul, 9 November 2026:

"the score for each game is stored per person but the highscore board is across the multiroom… like catch up its per user, like amelias score for all the games should be on her account… orbi raiders would stay on mine"

  • Route. Scores ride the existing Rooms sync, the one that carries Continue watching. It runs every 2 minutes while Orbit is open on both TVs, over the home Wi-Fi only, sealed with the pair's key (RoomSync.state / merge, key "arcade").
  • What's sent. Each person's own runs and games-won counts, read from their own Arcade file. Level progress, settings, checkpoints and the day's puzzle are not sent: game progress stays with the TV it was played on.
  • What's kept. One read-only copy per paired room, in filesDir/arcade/rooms/<link>.json (RoomScoreCopies). A sync never writes anyone's own save file, and RoomScoresTest checks that byte for byte.
  • Merging only adds.
    • Runs from each copy are put together, with the same run (score, time, detail) counted once, and the best 10 are kept.
    • Counts only go up.
    • If the other room clears a person's scores, what was already heard stays.
  • Shown. A person's scores are their own here plus each other room's for them (ArcadeRoomScores.combined). This sets their best on the cards, the "best to beat" in a game, and the board. Games-won counts are added room by room, so a re-sync can't count anything twice.
  • The board. " · the whole house, every room".
    • Each row shows Your best and House best · (shown as "You" when it's yours, in yellow).
    • OK on a row opens the house Top 10 with names. Counted games (Patience wins, Skydoku solves) rank people by their totals.
    • Kids still see only their own games. Household Records stay read-only.
  • Mixed builds. A TV on an older build ignores the new "arcade" key, so a mixed pair carries on syncing everything else. Each TV shows the other's scores once both run 312. No re-pairing is needed.

Orbit Rush: easier to tell when you jump

Paul: "harder to tell when you jump". Up or down now reads four ways at once:

  1. Shadow: Blaze's shadow on the track is small and faint when he's risen, big and dark when he's dived.
  2. Size: the rocket is bigger when risen and smaller when dived.
  3. Height: he eases up or down (RushSim.lift) instead of jumping between heights.
  4. Marker: an arrow in the colour of what the move gets him past (yellow ▲ over a low satellite, cyan ▼ under a gate), with a bar showing how long he stays there.

Nothing flashes, and the marker and shadow work with Reduce motion too. The marker's shape is made once, not every frame.

The Originals row

Paul: the row "could do with some work, cuts either end off or clips".

  • Room to grow: 12 dp at each end and 8 dp above and below, so the focused card's 4% grow and its border never touch an edge.
  • A peek of the next card: with more than five Originals, cards are sized 4.6 across, so part of the next one always shows.
  • Scrolling: focus scrolls the row with an eased 360 ms move (Compose, peekIntoView / peekScroll) so the chosen card sits whole with part of its neighbour beside it. With Reduce motion it's a plain jump, and the grow is off as before.
  • Sizes: an Android TV lays out at 960 × 540 dp at both 720p and 1080p, so one size check covers both (TitleTextFitsTest). The Classics row has no grow, and its border sits inside each tile, so it doesn't clip.
  • EffectCraft: I didn't use it. Compose's own easing was enough.

Checked

  • Tests: 1,095 run, 24 skipped, 0 failed. New: RoomScoresTest (7), a Rush rise and dive test, and a fit test for the Originals row.
  • Lint: 88 warnings, none new.
  • APK: apks/orbit-tv-0.121.0-house-scores.apk, sha256 d8bf6f5a…eebe.
  • Not yet seen on screen: I've no emulator or screenshot tooling here, and no install was asked for.

What each TV needs

  • Downstairs: 311 → 312, using the usual routine.
  • Upstairs: 293 → 312. That brings everything since 293 (the Classics family and modes, Night Shift, Orbiteroids, Quiz Night, Tangle, Codebreaker, Daily, Orbit Rush, the sound kit), using the same routine, with a snapshot and save checks.
  • After both: within a couple of minutes of Orbit being open on both TVs, each person's scores show on the other TV.

0.122.1 (versionCode 314): the Originals row keeps up

Paul, on 313: "the scroll on orginal feels worse can scroll before it catchs up".

The row now scrolls itself (rowScroll, RowPacer). Compose's own scroll-to-focus is switched off there, so the two never fight.

  • Never behind: the moment a card is focused it is put fully on screen, and any scroll still running is dropped.
  • The peek: the next card's peek then eases in over 140 ms.
  • Rapid presses: presses less than 220 ms apart, a held key, or Reduce motion scroll at once, with nothing animated.
  • Tests: RowScrollTest simulates rapid ▶ and ◀ presses across all ten cards. The focused card is whole after every press, the ease never leaves it partly off screen even when cut short, and the next card peeks in.
  • The Classics row: it doesn't scroll (all eight tiles fit across), so there was nothing to trail there.