diff --git a/src/game.c b/src/game.c index 7c899e9..48c9ca2 100644 --- a/src/game.c +++ b/src/game.c @@ -93,9 +93,9 @@ void runGameCycle() // TODO consider game.lifesRemaining and reset if still good? LOGI("game: collided with wall or self! => show leaderboard\n"); LOGI("DEBUG: collision currently disabled, game will continue in 1s...\n"); - DELAY(1000); + DELAY(800); //game.gameState = MENU; //TODO add config.collisionEnabled option? - //showLeaderboard(); + showLeaderboard(); return; } diff --git a/src/menu.c b/src/menu.c index 10f7183..a80ce9e 100644 --- a/src/menu.c +++ b/src/menu.c @@ -8,10 +8,12 @@ void showStartScreen(){ } void showLeaderboard(){ + game.gameState = EXIT; return; } void showPauseScreen(){ + game.gameState = PAUSED; return; }