fixed timer functions
This commit is contained in:
@ -512,6 +512,11 @@ bool ApplicationManager::initializeGame() {
|
||||
m_game = std::make_unique<Game>(m_startLevelSelection);
|
||||
// Wire up sound callbacks as main.cpp did
|
||||
if (m_game) {
|
||||
// Apply global gravity speed multiplier from config
|
||||
m_game->setGravityGlobalMultiplier(Config::Gameplay::GRAVITY_SPEED_MULTIPLIER);
|
||||
// Reset to recalculate gravity with the new multiplier
|
||||
m_game->reset(m_startLevelSelection);
|
||||
|
||||
m_game->setSoundCallback([&](int linesCleared){
|
||||
SoundEffectManager::instance().playSound("clear_line", 1.0f);
|
||||
// voice lines handled via asset manager loaded sounds
|
||||
|
||||
Reference in New Issue
Block a user