Repository navigation
Add drops of oil, a goal for each level, and its stars - #22
Merged
Merged
Conversation
Each street of a hand level has 2 drops of oil that push the night back a little. Each level has a goal: each drop of oil, or the gate before a time. A hand level gives a star for the gate, the goal, and all the oil in one run, and the save keeps the oil and the goals.
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 #6. Based on #21.
oil {x y}. Each street of the 10 hand levels has 2 drops, on the line of its route, so the tested route passes near them. A drop of oil pushes the night back by 0.05, with a small burst and the sound nameoil(eventoil SCENE K).goal oil allorgoal time SECONDS. The odd levels have the oil goal. The even levels have a time of 1.5 times their route, and a test checks that each route meets its time. The title card of a level shows the goal, and the end card shows the oil count and "goal done" or "goal missed".oil {LEVEL COUNT ...}andgoals {LEVEL 1 ...}. A save with no such key reads as before.The oil changes no route: the routes of the 10 levels replay with the same frames.
What ran here:
ztcl test(112 tests pass, 7 new: the goals, the stars, the save of the oil and goals, the level check of a goal),tests/tk/smoke.tclandtests/tk/save.tclwith ztk 1.0.0-beta.8 headless, and captures of the oil, the title card, and the end card. What did not run: a person who plays for the goals, the web build with this change, and a phone.