Skip to content

Add the time in tenths and a list of best times - #23

Merged
beetlebugorg merged 1 commit into
collectiblesfrom
best-times
Dec 4, 2026
Merged

beetlebugorg merged 1 commit into
collectiblesfrom
best-times

Conversation

@beetlebugorg

Copy link
Copy Markdown
Owner

Closes #7. Based on #22.

  • Timer: the bar shows the time of a hand level as M:SS.T, and best M:SS.T when the level has a best time. The tenths are cut, not rounded, so the time on the screen never runs ahead of the end card.
  • Best times: a new title entry, Best times, lists each lit level and street, in the order of the picker, with its time and stars, 10 rows to a page. Under the rows is the sum of the best times of the hand levels when each one is lit. The title line of the entry gives that sum, or the count of times. Left and Right turn the page. B, Escape, or a tap in the middle goes back. Escape now goes back from the picker too.
  • Save: no new key. The best time of each hand level (best) and of each street (sbest) were in the save already, and a test checks that they go through a save.
  • The title now hides the drops of oil of its street.

The rule of a best time stays: a hand level keeps the lowest time; a street keeps the most stars, then the lowest time.

What ran here: ztcl test (117 tests pass, 5 new: the time text, the rule of a best time with a replay of a route, the rows of the list, the sum, and the save), tests/tk/smoke.tcl (new checks: the list opens from the title, has its rows, and Escape goes back) and tests/tk/save.tcl with ztk 1.0.0-beta.8 headless, captures of the list, the title, and the bar, and the web build in headless Chromium. What did not run: a person with a keyboard, a gamepad, or a phone.

The bar shows the time of a level in tenths and its best time. Best
times on the title lists each lit level and street with its time and
stars, and the sum of the hand levels when each one is lit. Escape
goes back from the list and from the picker.
@beetlebugorg beetlebugorg added this to the v0.2.0 milestone Dec 4, 2026
@beetlebugorg
beetlebugorg merged commit b8854af into collectibles Dec 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant