nouveau niveau + pofinage de lediteur

This commit is contained in:
cyjullien1
2025-01-06 17:13:27 +01:00
parent 13fd66cecb
commit e9b91e0e81
8 changed files with 50 additions and 16 deletions

View File

@@ -39,7 +39,7 @@ int main ()
vect pos = {4, 1};
char**menu = generatorMenu("maps", &dim_menu, &pos);
backgroundDisplay(&display_user);
backgroundDisplay(&display_user,0);
vect null = {0, 0};
output = inGameLoop (menu, &dim_menu, &pos, &null , 1,
&display_user, &score_user, true);
@@ -52,9 +52,10 @@ int main ()
{
SDL_RenderClear(display_user.renderer);
backgroundDisplay(&display_user);
if(output == -1)
{
backgroundDisplay(&display_user,0);
menu = generatorMenu("maps", &dim_menu, &pos);
pos.x = 4; pos.y = 1;
output = inGameLoop(menu, &dim_menu, &pos, &null, 1, &display_user, &score_user, true);
@@ -62,13 +63,12 @@ int main ()
}
else if(output == -2)
{
printf("editeur de map");
//newmap
backgroundDisplay(&display_user,2);
output = inEditorLoop(tab2d, &dim, playerPos, targets, nbr_targets, &display_user,&score_user ,num_fichier);
}
else
{
printf("editeur de map : %d" ,output);
backgroundDisplay(&display_user,1);
score_user.before = time(NULL);
char txt[30] = "";
if(output <= 3)