diff --git a/JEUX_SERPENT/Jeux b/JEUX_SERPENT/Jeux index 9b6ebcc..195efbe 100755 Binary files a/JEUX_SERPENT/Jeux and b/JEUX_SERPENT/Jeux differ diff --git a/JEUX_SERPENT/fonction.h b/JEUX_SERPENT/fonction.h index 05ddd0b..8176ba8 100644 --- a/JEUX_SERPENT/fonction.h +++ b/JEUX_SERPENT/fonction.h @@ -13,7 +13,7 @@ extern unsigned long int suivant; extern int serpent; extern int x, y, direction, t, segment, i; -extern int pos_x[60], pos_y[60], old_x[60], old_y[60]; +extern int pos_x[2400], pos_y[2400], old_x[2400], old_y[2400]; extern int p, pp, pomme, pommex[5], pommey[5]; extern int fond, Nbr; diff --git a/JEUX_SERPENT/main.c b/JEUX_SERPENT/main.c index 256c253..ea5c020 100644 --- a/JEUX_SERPENT/main.c +++ b/JEUX_SERPENT/main.c @@ -13,7 +13,7 @@ unsigned long int suivant; int serpent; int x=500, y=500, direction=1, t, segment=10, i; -int pos_x[60], pos_y[60], old_x[60], old_y[60]; +int pos_x[2400], pos_y[2400], old_x[2400], old_y[2400]; int p, pp, pomme, pommex[5], pommey[5]; int fond, Nbr; diff --git a/JEUX_SERPENT/serpent.c b/JEUX_SERPENT/serpent.c index 8cf65c4..8493b42 100644 --- a/JEUX_SERPENT/serpent.c +++ b/JEUX_SERPENT/serpent.c @@ -69,6 +69,8 @@ void Update_Serpent(){ pos_y[i]=old_y[i-1]; AfficherSprite(serpent, pos_x[i], pos_y[i]); } + ChoisirCouleurDessin(CouleurParComposante(0,0,0)); + RemplirRectangle(0,0,20,20); old_x[0]=pos_x[0]; old_y[0]=pos_y[0]; for (i=1 ; i