crystal-bit / space-shooter

Shoot 'em up game, developed for the Hacktoberfest 2019 event with the Crystal Bit community.
GNU General Public License v3.0
41 stars 34 forks source link

Volume slider working #71

Closed rubin0 closed 5 years ago

rubin0 commented 5 years ago

The volume is set through audio bus when the volume slider is changed and option popup is closed. Also the volume is set on startup picking the value from config file if present otherwise default audio bus value will be used.

All audio related stuff is in autoloaded script called AudioManager.

Closes #60

davcri commented 5 years ago

Amazing @Karbb :D I had a little crash on boot because of this:

Screenshot_20191015_095833

I manually fixed it by adding a 3rd parameter to the get_value method (it specifies a default value to return if nothing is found in the file).

Screenshot_20191015_095846

rubin0 commented 5 years ago

Oh cool. I didn't tested the feature without the config entry for the audio slider. Good to know BTW