Level Discoverystart here Intermediatethe architecture Expertin depth
Batch 5 Β· Storm
Chapter 5

The sound of wind, without a single file

All of Tower Duel's sound is synthesized live with the Web Audio API β€” not one audio file. Here's how the wind is born, how it adapts to strength, and how it tells your ears which way it blows. With a simulator to try it all.

1Zero assets, all oscillators

The game ships no .mp3 or .wav. Every noise β€” shot, explosion, whistle, fanfare β€” is generated on the fly from filtered noise and oscillators.

Wind is no exception. Rather than looping a recording, we build a continuous sound bed that reacts in real time to the simulated wind value. The payoff: zero download, and a sound that matches exactly what's happening on screen.

For the curious. A browser's audio context starts suspended: it only makes sound after a user gesture (click, key). That's why the simulator below stays silent until you press β€œStart the wind”.

2Four wind characters

The simulator offers four synths, from the most neutral to the most distinctive:

Tip. All four share the same pink-noise bed: only the layers on top change. So switching character costs almost nothing β€” it's just a fresh wiring of filters.

3Your turn: the wind test bench

Your turn! Put on headphones, start the wind, then drag the strength left and right. Try the four characters, tick β€œdirectional gust” to hear the heading, and β€œrandom play” to let them cycle on their own.

Wind-sound test bench

L R
Headphones recommended. The bottom bar shows the left/right levels and the position in the stereo field.

β˜…You've heard the wind come to life

Four characters, a single value driving everything, and direction delivered straight to your ears β€” all without a single file.

Want to look under the hood? The Intermediate level opens up the airflow recipe and the TV spatialization; the Expert level shows how we chain ambiences without ever cutting a gust. The level switcher is at the top of the page.

The moral. A sound that β€œsticks” to the game doesn't come from a big bank of files, but from a handful of parameters wired straight into the simulation.

↩ Back to home

← Chapter 4 The end πŸŽ‰