fix bug lose

This commit is contained in:
2024-12-30 11:20:30 +01:00
parent a6065b1aff
commit 0e0b1a2528
6 changed files with 70 additions and 2 deletions

View File

@@ -72,6 +72,9 @@ int main ()
tab2d = creatArea2D(SIZE_PLAY, SIZE_PLAY);
targets = fileToTab2D(txt, tab2d, SIZE_PLAY, playerPos, &nbr_targets);
output = inGameLoop(tab2d, &dim, playerPos, targets, nbr_targets, &display_user, &score_user, false);
SDL_RenderClear(display_user.renderer);
if(output != -1000) winOrLoseLoop(&display_user, output==1);
output = -1;
}
}