Repository navigation
[11/16] feat: add health damage and checkpoint respawn - #135
Merged
arudaev merged 3 commits intoOct 24, 2026
Merged
Conversation
Apply the documented cell costs, knockback and hit immunity, then collapse into pixel dust and restore full health at the checkpoint on death. Keep free no-go resets separate from damaging hazards and return to the last safe ground. Expose healing, checkpoint and actor-reset hooks for the coffee, food and enemy stories. Preserve defeated bosses across scene restarts and update the public HUD model without changing the agreed game events.
|
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 10 tasks
Carry human-merged lane A changes upward without rewriting published commits.
7 of 8 tasks
7 of 11 tasks
9 of 12 tasks
10 of 12 tasks
Carry human-merged lane A changes upward without rewriting published commits.
arudaev
marked this pull request as ready for review
October 24, 2026 01:34
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
The hero has five cells, one-cell normal damage and two-cell heavy damage, white flash, 64.5px knockback and one second of invulnerability with flicker. Death plays the supplied collapse clip and pixel dust, then restores full health at the checkpoint. Orange hazards damage and reset to safe ground; black no-go regions reset without damage. Actors can register respawn callbacks; defeated boss ids survive scene restarts. The public checkpoint/healing hooks are ready for coffee and food interactions.
Issue
Closes #42
Stack
Base:
feature/31-animation-state-machine. 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(93 tests),npm run build; includes main integration at e8577abpy -3.13 scripts/check_docs.py— 650 filesgit diff --cached --checkIntegration
The six agreed event payloads remain intact. Hit/death/save use the existing bus; healing and respawn update the HUD through its public model API. Development F5 exercises a hit, Shift+F5 heavy damage, Ctrl+F5 a hazard reset and Alt+F5 a free reset. F5 is captured by the game and these controls are omitted from production. Attacking is locked while dead, knocked back or climbing.
Screenshots
Shown in chat, saved in ignored
tmp/verification/42-hit.png,42-hazard-no-go.png,42-respawn.png,42-fall-safe.pngand the timestamped death PNG sequence. No verification media or art files are committed.