nouveau niveau + pofinage de lediteur
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user