Description
Add sound effects and potentially music to the game. Covers tower attacks, creep deaths, UI interactions, and ambient sounds. Key design decisions needed: audio library choice (OpenAL, FMOD, miniaudio, SoLoud), whether to support 3D positional audio or simple stereo, and music system scope (looping tracks, crossfading).
Steps
- Choose and integrate audio library (add to vcpkg), create
AudioSystem (FrameSystem) and SoundEmitter component
- Implement sound playback for game events (tower fire, creep death, tower built, wave start)
- Implement UI sounds (button clicks, placement mode enter/exit)
- Add volume controls (master, SFX, music)
- Optional: background music with crossfading and 3D positional audio based on camera position
Description
Add sound effects and potentially music to the game. Covers tower attacks, creep deaths, UI interactions, and ambient sounds. Key design decisions needed: audio library choice (OpenAL, FMOD, miniaudio, SoLoud), whether to support 3D positional audio or simple stereo, and music system scope (looping tracks, crossfading).
Steps
AudioSystem(FrameSystem) andSoundEmittercomponent