This commit is contained in:
2024-12-15 17:39:02 +01:00
parent 18a0978ab6
commit 02f09680d3
3 changed files with 2 additions and 3 deletions

View File

@@ -86,7 +86,7 @@ int getMaxSize (int size_box)
SDL_Quit (); SDL_Quit ();
int minus_mod = (result-50) % size_box; int minus_mod = (result-50) % size_box;
printf("DIS :%d, size : %d ,mod : %d\n",result, size_box,minus_mod); printf("DIS :%d, size : %d ,mod : %d\n",result, size_box,minus_mod);
return (result - 50 - minus_mod); // margin return (result - 50 - minus_mod); // margin
} }
void initSDL (dis *display_user) void initSDL (dis *display_user)

View File

@@ -199,7 +199,6 @@ void inGameLoop (unsigned short int **tab2d, int N, vect *playerPos,
if (event.type == SDL_KEYDOWN) if (event.type == SDL_KEYDOWN)
{ {
input = event.key.keysym.scancode; input = event.key.keysym.scancode;
printf ("%c\n", input);
switch (input) switch (input)
{ {
case SDL_SCANCODE_ESCAPE: case SDL_SCANCODE_ESCAPE:

2
main.c
View File

@@ -7,7 +7,7 @@
#include <stdio.h> #include <stdio.h>
#include <time.h> #include <time.h>
#define SIZE_PLAY 30 #define SIZE_PLAY 26
int main () int main ()
{ {