Enable endless runner tapping right after leaving the title screen

This commit is contained in:
David Volovskiy 2025-08-31 16:28:59 -04:00
parent e6b8be4676
commit 2bce9bba65

View File

@ -599,11 +599,17 @@ bool endless_runner_face_loop(movement_event_t event, void *context) {
break; break;
case EVENT_LIGHT_BUTTON_UP: case EVENT_LIGHT_BUTTON_UP:
case EVENT_ALARM_BUTTON_UP: case EVENT_ALARM_BUTTON_UP:
if (game_state.curr_screen == SCREEN_SCORE) { switch (game_state.curr_screen) {
case SCREEN_SCORE:
enable_tap_control(state); enable_tap_control(state);
begin_playing(state); begin_playing(state);
} break;
else if (game_state.curr_screen == SCREEN_TITLE || game_state.curr_screen == SCREEN_LOSE) { case SCREEN_TITLE:
enable_tap_control(state);
// fall through
case SCREEN_TIME:
case SCREEN_LOSE:
watch_clear_display();
display_score_screen(state); display_score_screen(state);
} }
break; break;