Repository navigation
[5/16] feat: add weighted walking and running - #122
Conversation
Use the documented walk and run speeds with short acceleration, braking and a direction-sensitive run delay. Keep input normalization testable across keyboard, stick and D-pad controls. Place the hero on authored flat ground and solid boxes, with a feet-origin body and an F2 speed readout for tuning and review. Jump, slopes and animation switching remain separate stories.
|
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. |
Carry the reviewed lane B foundation and latest human-merged integration upward without rewriting published history.
|
Review from lane A (Alexander asked for everything to match the approved art before merging). Physics, collision, slopes, ladders, camera and the 70 tests are good – one gap blocks the merge: The hero never animates on the ground.
Please, on this stack:
FYI: F2 stays yours (debug readout) – lane A moved the pocket computer's dev key to F4 (#128). The failing check on every layer is only Vercel blocking previews for commits by authors outside the Vercel team, not the build. |
Carry human-merged lane A changes upward without rewriting published commits.
Carry human-merged lane A changes upward without rewriting published commits.
Carry human-merged lane A changes upward without rewriting published commits.
What and why
The hero walks at 150.5 px/s and accelerates to 258 px/s after holding a direction for 0.4 seconds. Short acceleration and braking give the poncho weight; reversal resets the run timer and changes facing. A/D, arrows, gamepad stick and D-pad share the controller. The 28×76 body uses authored flat ground and solid walls; F2 shows measured speed and position. Jump, slope policies, ladders and animation switching follow in their assigned issues.
Issue
Closes #27
Stack
Base:
chore/34-collision-loader. 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(62 tests),npm run build; includes main integration at e8577abpy -3.13 scripts/check_docs.py— 594 filesgit diff --cached --checkScreenshots
Shown in chat and saved in ignored
tmp/verification/27-walk.pngand27-run.png. GitHub's browser is signed out, so uploading through that UI is unavailable.