mb and mp

This commit is contained in:
2024-12-16 21:35:55 +01:00
parent e2d0e8e605
commit 9f51622e59
3 changed files with 38 additions and 12 deletions

4
main.c
View File

@@ -23,13 +23,15 @@ int main ()
score playerScore;
unsigned short int **tab2d = creatArea2D (SIZE_PLAY);
score score_user = {0, 0, 0,0};
targets
= fileToTab2D ("test.txt", tab2d, SIZE_PLAY, playerPos, &nbr_targets);
screenDisplayGameSDL (tab2d, &display_user);
screenDisplay (tab2d, SIZE_PLAY);
inGameLoop (tab2d, SIZE_PLAY, playerPos, targets, nbr_targets,
&display_user);
&display_user, &score_user);
SDL_DestroyWindow (display_user.window);
SDL_DestroyRenderer (display_user.renderer);