Skip to content

Add a title menu and a pause menu - #18

Merged
beetlebugorg merged 1 commit into
mainfrom
title-pause
Dec 4, 2026
Merged

beetlebugorg merged 1 commit into
mainfrom
title-pause

Conversation

@beetlebugorg

Copy link
Copy Markdown
Owner

Closes #2.

The title is a menu: Continue, All streets, Endless street, and Quit. Quit shows when app(quit) is 1: on a desktop with no touch screen. The web page sets it to 0. Up and Down (or Left and Right) choose, A or Enter starts, and a tap starts the entry under it.

Escape, Enter, or the mark "II" pauses a level or a run. The pause has Resume, Restart, and Title. Pause or B resumes. A tap on an entry runs it, and a tap off the entries resumes. <Unmap> and <Deactivate> of the window pause the game.

core/menu.tcl has the entries, the move of the selection, and the entry under a point, with 6 tests in tests/menu.test.

What ran here: ztcl test (70 tests pass), ztk --headless --exit-after-frames 2 tests/tk/smoke.tcl (the title menu, a tap on an entry, Escape, Restart, Start, the pause key, the Title entry, and the Quit entry), and captures of the title and the pause with ztk 1.0.0-beta.8. What did not run: a desktop window with a real focus change, a phone, and the web page with this change.

The title lists Continue, All streets, Endless street, and Quit when
app(quit) is 1. Escape, Enter, or the pause mark opens a pause with
Resume, Restart, and Title. core/menu.tcl has the entries and the hit
test of each row, with tests.
@beetlebugorg beetlebugorg added this to the v0.2.0 milestone Dec 4, 2026
@beetlebugorg
beetlebugorg merged commit 9695b27 into main 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.

Title screen and pause

1 participant