wobblyhead hg > minor_monsters
view doc/sound.md @ 1:5492efd60e2c
first prototype + updated art sheet
| author | ark |
|---|---|
| date | 2026-10-18 14:50 +0200 |
| parents | 7af9dd4e2595 |
| children | 2d46729a022e |
line wrap: on
line source
sound ----- the first version uses placeholder beeps, generated in the browser (web audio oscillator, a few notes each). voice recordings replace them later, one event at a time. events ------ | event | notes | |----------------------|-------| | t0 attack | | | t1 shot | | | t2 shot | | | t3 shot | | | monster hit | frequent; keep short or play only some of them | | monster dies | | | boss appears | | | boss dies | | | coins arrive | at most one per short interval | | monster reaches exit | a heart is lost | | wave starts | | | early start bonus | | | tower built | | | tower upgraded | | | tower sold | | | placement refused | no legal spot within reach | | button tap | | | map won | | | map lost | | several recordings per event are allowed; the game picks one at random. recordings ---------- - recorded on any device, supplied in any common format - the build trims silence, evens out volume, converts to one format that desktop browsers and tablets (including safari) play, and embeds the result as base64 in a javascript file. see architecture.md for why - named after the event, with a number for variants browsers only play sound after the first user interaction. the first tap on the title screen unlocks audio. sound can be switched off; the setting is stored with the other settings.
