Skip to content

v8: Prismatic After-images#21

Open
brycecovert wants to merge 1 commit into
mainfrom
juice-man-v8-prismatic-afterimages
Open

v8: Prismatic After-images#21
brycecovert wants to merge 1 commit into
mainfrom
juice-man-v8-prismatic-afterimages

Conversation

@brycecovert

Copy link
Copy Markdown
Owner

Level 1 — v8

Prismatic After-images create a vivid, ghostly trail of Pac-Man's movement, turning his path through the rotating maze into a sweeping rainbow ribbon.

  • After-image System: Pac-Man generates a semi-transparent clone of himself every 60ms. Clones are stored in a fixed-size queue and fade out over 500ms.
  • Chromatic Shift: Each after-image is assigned a color from the RAINBOW palette, cycling through colors sequentially to create a continuous spectrum trail.
  • Rotation Mapping: After-images are anchored to the playfield's coordinate system, meaning they rotate and spin perfectly with the maze and Pac-Man, creating elegant, colorful spirals as he moves.
  • Visual Polish: After-images use a globalAlpha fade and a slight scale-down (from 1.0 to 0.8) as they age, creating a tapering effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant