fix probleme zone de jeu

This commit is contained in:
2024-12-15 18:56:12 +01:00
parent c5c2949538
commit ce2acefbc5
7 changed files with 52 additions and 13 deletions

9
main.c
View File

@@ -7,7 +7,7 @@
#include <stdio.h>
#include <time.h>
#define SIZE_PLAY 26
#define SIZE_PLAY 5
#define SIZE_MENU 200;
int main ()
@@ -27,8 +27,11 @@ int main ()
playerScore.before = time (NULL);
targets
= fileToTab2D ("test.txt", tab2d, SIZE_PLAY, playerPos, &nbr_targets);
screenDisplaySDL (tab2d, &display_user);
= fileToTab2D ("test3.txt", tab2d, SIZE_PLAY, playerPos, &nbr_targets);
screenDisplayGameSDL (tab2d, &display_user);
vect size = {100, 100};
vect pos = {900, 0};
displayTextSDL(&display_user, "213", pos, size, 24);
screenDisplay (tab2d, SIZE_PLAY);
inGameLoop (tab2d, SIZE_PLAY, playerPos, targets, nbr_targets,
&display_user);