[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
Collaborator

Fixes #35

Summary

  • Spring wobble: Light slaps now trigger a damped spring wobble using the previously unused SLAP_IMPULSE constant, producing visible head/body oscillation
  • Synthesised boing: 3-layer Web Audio SFX (noise pop + sine sproing + triangle harmonic) plays on light slaps for a satisfying cartoon spring sound
  • Multi-tap ragdoll: Only 3 rapid slaps within 2 seconds escalate to the full ragdoll fall sequence
  • Proportional Pip startle: Mild scatter (1.5s) on wobble, maximum scatter (5s) on ragdoll
  • Scaled crystal flash: 0.25s flash for wobble, 0.5s for full ragdoll impact

Test plan

  • Click Timmy once — should wobble with boing sound, Pip startles mildly
  • Click Timmy 3x rapidly — should trigger full ragdoll fall with smack sound
  • Wait 2+ seconds between clicks — wobble resets, no ragdoll
  • Verify crystal ball flashes on both wobble and ragdoll
  • Test on mobile (touch tap)

🤖 Generated with Claude Code

Fixes #35 ## Summary - **Spring wobble**: Light slaps now trigger a damped spring wobble using the previously unused `SLAP_IMPULSE` constant, producing visible head/body oscillation - **Synthesised boing**: 3-layer Web Audio SFX (noise pop + sine sproing + triangle harmonic) plays on light slaps for a satisfying cartoon spring sound - **Multi-tap ragdoll**: Only 3 rapid slaps within 2 seconds escalate to the full ragdoll fall sequence - **Proportional Pip startle**: Mild scatter (1.5s) on wobble, maximum scatter (5s) on ragdoll - **Scaled crystal flash**: 0.25s flash for wobble, 0.5s for full ragdoll impact ## Test plan - [ ] Click Timmy once — should wobble with boing sound, Pip startles mildly - [ ] Click Timmy 3x rapidly — should trigger full ragdoll fall with smack sound - [ ] Wait 2+ seconds between clicks — wobble resets, no ragdoll - [ ] Verify crystal ball flashes on both wobble and ragdoll - [ ] Test on mobile (touch tap) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
claude added 1 commit 2026-03-23 01:04:50 +00:00
feat: spring wobble + synthesised boing for Timmy slap interaction
Some checks failed
CI / Typecheck & Lint (pull_request) Failing after 1s
09ebc19f5f
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>
Rockachopa merged commit 1243ad7ce5 into main 2026-03-23 14:51:37 +00:00
This repo is archived. You cannot comment on pull requests.