Implement all audio events and loading/unloading functionality for multi-channel BGM support.
This commit is contained in:
@@ -109,6 +109,24 @@ void State_OverworldMap::OnUserUpdate(AiL*game){
|
||||
if(game->GetKey(K1).bPressed){
|
||||
Audio::Play("sfx100v2_loop_water_01.mp3"_SFX);
|
||||
}
|
||||
if(game->GetKey(F1).bPressed){
|
||||
Audio::PlayBGM("foresty1_1");
|
||||
}else
|
||||
if(game->GetKey(F2).bPressed){
|
||||
Audio::PlayBGM("foresty0");
|
||||
}
|
||||
if(game->GetKey(K2).bPressed){
|
||||
Audio::SetAudioEvent("Default Volume");
|
||||
}
|
||||
if(game->GetKey(K3).bPressed){
|
||||
Audio::SetAudioEvent("LowHealth");
|
||||
}
|
||||
if(game->GetKey(K4).bPressed){
|
||||
Audio::SetAudioEvent("InCombat");
|
||||
}
|
||||
if(game->GetKey(K5).bPressed){
|
||||
Audio::SetAudioEvent("Underwater");
|
||||
}
|
||||
|
||||
#pragma region Handle Connection Point Clicking and Movement
|
||||
for(ConnectionPoint&cp:connections){
|
||||
|
||||
Reference in New Issue
Block a user