Exercises
Don't forget to checkout the branch:
git checkout 09-sound-effects
Let's review what was changed: https://github.com/vleue/bevy_workshop/compare/08-action-zones..09-sound-effects
Other Events
Add sound for game start, winning and losing.
Tips:
Background Music
Add a background music
Tips:
- You can use
PlaybackSettings::LOOP
to play a looping audio
Audio Settings
Audio volume should always be configurable. This is important for accessibility. Add a way to control volume of all audio, or even better ways to control separately the volume of the background music and of the audio effects.
Tips:
PlaybackSettings
can be used to control volume of an audio- You can add +/- buttons on the menu screen that control the volume
- Store the current volume in a resource, and use it when spawning new entities to play audio