[claude] Spring wobble + boing SFX for Timmy slap (#35) #52

Merged
Rockachopa merged 1 commits from claude/issue-35 into main 2026-03-23 14:51:37 +00:00

1 Commits

Author SHA1 Message Date
Alexander Whitestone
09ebc19f5f feat: spring wobble + synthesised boing for Timmy slap interaction
Some checks failed
CI / Typecheck & Lint (pull_request) Failing after 1s
Light slaps now trigger a spring wobble (using the previously unused
SLAP_IMPULSE constant) with a cartoony synthesised boing sound.
Only 3 rapid slaps within 2s escalate to the full ragdoll fall.

- Spring wobble: kicks slapVelocity on light tap, damped spring
  produces visible head/body oscillation
- Synthesised boing: 3-layer Web Audio (noise pop + sine sproing +
  triangle harmonic) for satisfying cartoon spring sound
- Pip startle scales proportionally: mild scatter on wobble (1.5s),
  maximum scatter on ragdoll (5s)
- Crystal flash scales: 0.25s for wobble, 0.5s for ragdoll

Fixes #35

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-22 21:04:29 -04:00