add updateMusicStream + musicSystem

This commit is contained in:
Askou
2021-06-08 14:52:03 +02:00
parent 856eb1adc2
commit 6c7d8fcfcf
12 changed files with 198 additions and 112 deletions
@@ -16,7 +16,8 @@ namespace BBM {
const auto &controllable = entity.get<ControllableComponent>();
auto &sound = entity.get<SoundComponent>();
auto &health = entity.get<HealthComponent>();
sound.setVolume(sound.volume);
std::map<bool, SoundComponent::soundIndex> soundIndex = {
{controllable.bomb, SoundComponent::BOMB},
{controllable.jump, SoundComponent::JUMP},