asteroid explode

This commit is contained in:
2025-12-20 19:49:05 +01:00
parent ad014e1de0
commit b69b090e45
5 changed files with 45 additions and 2 deletions

View File

@ -460,6 +460,7 @@ int TetrisApp::Impl::init()
ctx.exitPopupSelectedButton = &exitPopupSelectedButton;
ctx.gameplayCountdownActive = &gameplayCountdownActive;
ctx.menuPlayCountdownArmed = &menuPlayCountdownArmed;
ctx.skipNextLevelUpJingle = &skipNextLevelUpJingle;
ctx.challengeClearFxActive = &challengeClearFxActive;
ctx.challengeClearFxElapsedMs = &challengeClearFxElapsedMs;
ctx.challengeClearFxDurationMs = &challengeClearFxDurationMs;
@ -1090,7 +1091,13 @@ void TetrisApp::Impl::runLoop()
const std::vector<std::string> audioIds = {"clear_line","nice_combo","you_fire","well_played","keep_that_ryhtm","great_move","smooth_clear","impressive","triple_strike","amazing","you_re_unstoppable","boom_tetris","wonderful","lets_go","hard_drop","new_level","asteroid_destroy","challenge_clear"};
for (const auto &id : audioIds) {
std::string basePath = "assets/music/" + (id == "hard_drop" ? "hard_drop_001" : (id == "challenge_clear" ? "GONG0" : id));
std::string basePath = "assets/music/" + (id == "hard_drop"
? "hard_drop_001"
: (id == "challenge_clear"
? "GONG0"
: (id == "asteroid_destroy"
? "asteroid-destroy"
: id)));
{
std::lock_guard<std::mutex> lk(currentLoadingMutex);
currentLoadingFile = basePath;