Pac-Man: row/column push mechanic with hidden dots#19
Open
bster wants to merge 2 commits into
Open
Conversation
Pac-Man now pushes entire rows of CV text left/right as he moves horizontally through them (±22px Y band). Moving vertically pushes a column lane of chars (±26px X band). Letters wrap around the screen on both axes. Each letter hides a dot at its original position. Once a letter has been pushed ≥14px away, the dot is exposed. Pac-Man eats exposed dots for 10pts each. All dots eaten = win. Removes: reflowChars call, individual letter eating, pEaten array. Adds: offsetX/offsetY per char, pDots parallel array, pWrappedDisp(). https://claude.ai/code/session_01WxbFVLK8AGoBvQE2MKh3kw
✅ Deploy Preview for benstern ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
- game.js: ripple wave displaces nearby alive letters on kill (expanding ring at 4.5px/frame, sin() displacement up to 7px, 30px bandwidth, fades over ~33 frames) - pacman.js: remove invincibility blink — Pac-Man always visible https://claude.ai/code/session_01WxbFVLK8AGoBvQE2MKh3kw
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
Replaces the letter-eating mechanic with a sliding-puzzle push system:
What changed
offsetX/offsetYadded per char inpBuildLayout(); chars render at((baseX + offsetX) % W + W) % WpDots[]parallel array — one dot per char at original center positionpWrappedDisp()— shortest signed displacement on a wrapped axis (handles chars that have lapped the screen)reflowCharscall,pEaten[]array, andpContentLeft/RightTest plan
https://claude.ai/code/session_01WxbFVLK8AGoBvQE2MKh3kw