Skip to content

Add drops of oil, a goal for each level, and its stars - #22

Merged
beetlebugorg merged 1 commit into
hazardsfrom
collectibles
Dec 4, 2026
Merged

beetlebugorg merged 1 commit into
hazardsfrom
collectibles

Conversation

@beetlebugorg

Copy link
Copy Markdown
Owner

Closes #6. Based on #21.

  • Oil: a new part 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 name oil (event oil SCENE K).
  • Goal: a level file ends with goal oil all or goal 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".
  • Stars: a hand level gives 1 star for the gate, 1 for the goal, and 1 for all the oil in one run. Before, each hand level that was done had 3 stars. A save of 0.1.0 now shows 1 star for each done hand level, until the player meets the goal and takes the oil.
  • Save: the save has 2 new keys, oil {LEVEL COUNT ...} and goals {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.tcl and tests/tk/save.tcl with 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.

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.
@beetlebugorg beetlebugorg added this to the v0.2.0 milestone Dec 4, 2026
@beetlebugorg
beetlebugorg merged commit 1b07b77 into hazards 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