Quicker tuning, a choosable picture, a guide that stops at now (0.108.63)

Paul, 6 November 2026: tuning still takes a while; choose the picture for full
screen; keep the picture playing on the way back; and don't let the guide go
back before what's on now. Programmes now start once 1 second is loaded
instead of 2.5; up from the guide's top row reaches the picture and OK goes
full screen on it; the guide starts at now (Catch Up keeps its own page); and
the picture's handover both ways is logged (counts only) to find why it
sometimes re-tunes.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-11-06 16:55:50 +00:00
co-authored by Claude Opus 5.5
parent c9bf5718a5
commit f7d0503226
10 changed files with 44 additions and 17 deletions
@@ -45,14 +45,15 @@ class BrickBreakTest {
}
// Power-ups from the cast (Paul, 6 November 2026).
private fun playing() = BrickGame.start().copy(launched = true, bricks = bricksFor(1), ballX = 160f, ballY = 150f, vx = 60f, vy = -150f)
// A fixed seed, so which broken bricks drop stars is the same every run.
private fun playing() = BrickGame.start().copy(launched = true, bricks = bricksFor(1), ballX = 160f, ballY = 150f, vx = 60f, vy = -150f, seed = 1)
@Test fun aCaughtStarGivesItsPowerAndItsSound() {
val star = BrickDrop(160f, PADDLE_Y - 6f, BrickPower.WideOrbit)
val g = playing().copy(paddleX = 160f, drops = listOf(star)).step(.2f, 0)
assertTrue(g.drops.isEmpty()); assertEquals(listOf(BrickPower.WideOrbit), g.sounds); assertTrue(g.paddleW > 48f)
// Missed, it just falls away.
assertTrue(playing().copy(paddleX = 30f, drops = listOf(star)).step(.5f, 0).let { it.drops.isEmpty() && it.sounds.isEmpty() })
assertTrue(playing().copy(paddleX = 30f, drops = listOf(star)).step(.5f, 0).let { g -> g.drops.none { it.power == BrickPower.WideOrbit && it.x == 160f } && BrickPower.WideOrbit !in g.sounds })
}
@Test fun doubleLunaCostsALifeOnlyWhenTheLastBallDrops() {