Repository navigation
Add a title menu and a pause menu - #18
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.tclhas the entries, the move of the selection, and the entry under a point, with 6 tests intests/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.