fixed for cooperate mode
This commit is contained in:
@ -494,6 +494,17 @@ int TetrisApp::Impl::init()
|
||||
suppressLineVoiceForLevelUp = true;
|
||||
});
|
||||
|
||||
// Mirror single-player level-up audio/visual behavior for Coop sessions
|
||||
coopGame->setLevelUpCallback([this](int /*newLevel*/) {
|
||||
if (skipNextLevelUpJingle) {
|
||||
skipNextLevelUpJingle = false;
|
||||
} else {
|
||||
SoundEffectManager::instance().playSound("new_level", 1.0f);
|
||||
SoundEffectManager::instance().playSound("lets_go", 1.0f);
|
||||
}
|
||||
suppressLineVoiceForLevelUp = true;
|
||||
});
|
||||
|
||||
game->setAsteroidDestroyedCallback([](AsteroidType /*type*/) {
|
||||
SoundEffectManager::instance().playSound("asteroid_destroy", 0.9f);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user