Repository navigation
Spammy pack openings: stacking pile, rarity sparks/flames, tiered sounds - #28
Merged
Merged
Conversation
…and tiered sounds - One big repeated-tap stage flips the next card; arrow or space works too, and the pack grid keeps a single tappable card so a tap never flips the wrong card. - Flipped cards land on a growing, overlapping pile at the top of the stage (newest on top) with a landed-card animation, while the pack stays on one screen. - Rare pulls get sparks, flames, a glow, radial rays and a one-shot vignette, scaled by tier; rapid flipping downgrades to a short callout so it never strobes. Everything is decorative, aria-hidden, and hidden outright under prefers-reduced-motion. - Synthesised WebAudio cues are now tiered (flip/nice/rare/hype) plus a per-pack cheer sized by hit count, rate-limited so spamming stays musical. - The OS reduce-motion preference seeds the toggle on a first visit. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
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 changed
Spam opening/flipping
→and space do the same (space only when it would not scroll or press a focused button).touch-action: manipulationon the tap target so mobile taps are not swallowed by double-tap zoom.Cards flip onto each other at the top
RevealPile: every flipped card lands on top of the previous one — offset, slightly rotated, newest on top, with a shadow under the stack and a+n badge once more than four cards are stacked.Excitement for rare pulls
PullBurst/PullCelebration: sparks, flames, a warm glow, radial rays and a one-shot vignette, scaled by tier — understated for commons, warm for holo/rare, sparks for double rare and above, sparks + flames for special illustration/hyper/secret.aria-hidden,pointer-events-none, and their particles are hidden outright underprefers-reduced-motion.Sound on good pulls
packSound.tsrewritten as a tiered, synthesised cue set: soft tick for a common flip, a rising arpeggio + shimmer + whoosh for a chase pull, and a sub-bass thump + bell tail for a top-tier pull. A finished pack gets a cheer scaled by how many hits it contained.Accessibility
prefers-reduced-motionpreference now seeds the motion toggle on a first visit; an explicit choice in the UI always wins afterwards.Verification
npm test— 24 files / 204 tests pass (new coverage: pile growth, spam tapping, arrow/space repeats, rare-pull callouts).npm run lint,npm run typecheckclean;npm run buildsucceeds.