Wire jetpack into level W2#10 (lift-off) - #145
Merged
Merged
Conversation
Add a jetpack mechanic entry to level-25.json so the player can fly up the 6-row vertical gap between spawn (row 9) and exit (row 3). Params: maxFuel=300, thrustPower=260. The reachability validator intentionally does NOT model jetpack flight (it would be far too permissive), so lift-off will not pass the validator — this is expected by design. Refs #134
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Summary
Wires a jetpack mechanic into
level-25.json(lift-off, World 2 #10) so the player can traverse the 6-row vertical gap between spawn (row 9) and exit (row 3).Changes
mechanicsentry tosrc/levels/world2/level-25.jsonwith type"jetpack"and params{ maxFuel: 300, thrustPower: 260 }.createJetpackMechanicinsrc/mechanics/adapters.ts) equips on creation and applies upward thrust while jump is held, consuming fuel per step.Verification
npm run typecheck— passesnpm run lint— passesnpx vitest run— all 1340 tests pass (83 test files)parseLevel— theworlds.test.tssuite validates every level (including W2/level-25) loads without errors, confirms dimensions/spawn/exit/tiles.validateMechanics(checks id/type/params/duplicate-ids) and the jetpack factory is registered in the mechanic registry (src/mechanics/register.ts).Validator note
The reachability validator intentionally does NOT model jetpack flight — modeling free-flight thrust would make the validator far too permissive (any reachable-by-flying cell becomes trivially "valid"). As a result,
lift-offwill not pass the reachability validator. This is expected by design, not a regression.Closes #134