Commit 635d580
feat(theme): play Ender Dragon growl during fly-across (#307)
* feat(theme): play canonical Ender Dragon growl during fly-across
Adds the dragon idle/growl SFX (~3s, ~26 KB MP3 transcoded from
minecraft.wiki's Ender_dragon_idle1.ogg) that fires on every off→on
minecraft theme activation, in lockstep with the existing dragon
fly-across GIF. Gated on the same `minecraft-sound` localStorage flag
used by the click-sound effect in minecraft-background.tsx so a single
mute toggle covers all SFX, and skipped when prefers-reduced-motion is
set (matching the visual suppression). Browsers block autoplay before
the first user gesture — that's silently caught; the very next theme
toggle is itself a gesture and unlocks subsequent plays.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* chore(theme): hover dragon mid-screen so the growl lands on a pause
Extends the fly-across to 12s with a 35%→60% (4.2s–7.2s) hold at center,
and delays the audio start by 4.2s so the 3s growl sample plays during
the held position instead of bleeding across the entrance/exit motion.
The wing-flap GIF keeps the dragon visually alive during the hover.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b78a274 commit 635d580
3 files changed
Lines changed: 46 additions & 6 deletions
File tree
- packages/app
- public/decorative/minecraft
- src
- app
- components/minecraft
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
324 | | - | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
325 | 328 | | |
326 | 329 | | |
327 | 330 | | |
| |||
330 | 333 | | |
331 | 334 | | |
332 | 335 | | |
333 | | - | |
334 | | - | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
335 | 341 | | |
336 | 342 | | |
337 | 343 | | |
| |||
343 | 349 | | |
344 | 350 | | |
345 | 351 | | |
346 | | - | |
| 352 | + | |
347 | 353 | | |
348 | 354 | | |
349 | 355 | | |
| |||
Lines changed: 36 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | | - | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
102 | 105 | | |
103 | 106 | | |
104 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
105 | 139 | | |
106 | 140 | | |
107 | 141 | | |
| |||
0 commit comments