frederickjjoubert / bevy-ball-game

This is a small game I made to teach the basics of the Bevy Game Engine
https://bevyengine.org
MIT License
78 stars 16 forks source link

Controlling Volume #10

Closed JimLynchCodes closed 5 days ago

JimLynchCodes commented 5 days ago

Hey there @frederickjjoubert, awesome tutorial!

I noticed that in the final code here the pluck sounds were commented out, but thanks for leaving the code in there! 😅 👍

I think the sounds add a nice touch, and the coinflip randomness of choosing which one to play is pretty cool too.

I do agree that the sound is pretty hard and annoying as is though, but I think the problem is that the volume of the plucks are way too loud.

I was kind proud of myself for figuring out how to use Bevy's syntax, modifying the code just slightly so that it creates the AudioBundle's exactly the same but at 5% volume... This changes ONLY the volume of the pluck sounds, and I think it could be a good example to show in your tutorial for controlling volume through the code. 👨‍🏫

Also note that for this to work you would need to add the line importing "Volume" from bevy.

frederickjjoubert commented 5 days ago

That's a great addition, thank you!