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

@ -473,6 +473,9 @@ void MenuState::handleEvent(const SDL_Event& e) {
// Start challenge run at level 1
if (ctx.game) {
ctx.game->setMode(GameMode::Challenge);
if (ctx.skipNextLevelUpJingle) {
*ctx.skipNextLevelUpJingle = true;
}
ctx.game->startChallengeRun(1);
}
triggerPlay();

View File

@ -67,6 +67,7 @@ struct StateContext {
int* exitPopupSelectedButton = nullptr; // 0 = YES, 1 = NO (default)
bool* gameplayCountdownActive = nullptr; // True if start-of-game countdown is running
bool* menuPlayCountdownArmed = nullptr; // True if we are transitioning to play and countdown is pending
bool* skipNextLevelUpJingle = nullptr; // Allows states to silence initial level-up SFX
// Challenge clear FX (slow block-by-block explosion before next level)
bool* challengeClearFxActive = nullptr;
double* challengeClearFxElapsedMs = nullptr;