Repository navigation
[13/16] feat: save and refill at coffee machines - #144
Merged
Merged
Conversation
Resolve coffee machines from authored collision boxes and accept a fresh Up edge while grounded. Play the approved interaction clip, refill all five cells and save the current foot position for death respawn. Load a measured atlas placeholder until drinks art arrives, with idle flicker and comparison evidence. Copy position fields only in checkpoints. Typecheck, 108 tests, build and docs pass; browser verifies refill and death return at the real machine.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@Vatsal2005 must be a member of the arudaev's projects team on Vercel to deploy. Learn more about collaboration on Vercel and other options here. |
This was referenced Oct 23, 2026
9 of 12 tasks
10 of 12 tasks
Carry human-merged lane A changes upward without rewriting published commits.
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.
What and why
Press Up/W or gamepad Up while grounded at a coffee machine to drink, refill all five cells and save the current foot position. The authored three-frame interact clip owns input for a quarter second; a held direction never repeats the save. Death returns to the new checkpoint with full health.
The real Rusty Creek machine is located through its collision annotation and chunk offset. Until lane A exports
mensa-drinks, its atlas placeholder occupies the exact 40×80 box and flickers for one 12fps frame every two seconds. An explicit pending-art loader avoids requesting an absent real atlas. Checkpoints now copy position fields only.Issue
Closes #43
Stack
Base:
feature/39-chair-sweeps. Human merges bottom up; retarget the next PR to main and merge origin/main into every open branch, never rebase.Acceptance criteria
Verification
npm run typecheck,npm test(108 tests),npm run build; includes main integration at e8577abpy -3.13 scripts/check_docs.pygit diff --cached --checkReference comparison
Plan: docs/02 coffee save.
Made with
python scripts/compare.py images art/stages/rusty-creek/collision/rc-1-0.anomaly.png@870,218,50,60 tmp/verification/43-coffee-respawn.png@573,338,78,93 --width 400 --grid 40 --out game/verification/43-coffee-box-compare.png. The annotation preview is half stage scale and the browser is fitted to the viewport; both crops cover the same roughly 100×120 stage-pixel area, shown at 4× for review. Exact 40×80 bounds are asserted by real-file tests. White is the hero body; purple is the coffee interaction box.Made with
python scripts/compare.py lineup hero-hurt:interact-00 hero-hurt:interact-01 hero-hurt:interact-02 --out game/verification/43-drink-pose-compare.png. The approved leaning poses measure 72px high against the 76px standing reference; runtime preserves them without scaling.Full browser proof shown in chat and retained in ignored
tmp/verification/43-coffee-refill.pngand43-coffee-respawn.png. Thecoffee-testdevelopment URL starts at the real authored machine without copying or moving collision data.Scope and art hand-over
This saves the running game's death checkpoint, consistent with the existing life state. Disk persistence is not part of #43. Real idle/flicker/pour atlas integration follows the pending
mensa-drinksexport in #84. No art, collision annotations, shared event payloads or lane A files changed.