From 9717f400c876be6d3c0eb0c31fb77866d2b94233 Mon Sep 17 00:00:00 2001 From: Maxim LALANE Date: Wed, 20 Dec 2023 15:52:29 +0100 Subject: [PATCH] correction avancement --- Snake/Afficher.c | 4 +- Snake/Deplacement.c | 214 ++++++------------------------------- Snake/Jeu.c | 74 +++++++++++++ Snake/Jeu.h | 11 ++ Snake/Menu.c | 78 ++++++++++++-- Snake/Menu.h | 5 +- Snake/main.c | 64 +---------- Snake/makefile | 6 +- Snake_ancien/Afficher.o | Bin 4968 -> 0 bytes Snake_ancien/Chemin.o | Bin 2736 -> 0 bytes Snake_ancien/Deplacement.o | Bin 10352 -> 0 bytes Snake_ancien/Menu.c | 63 ++++++++--- Snake_ancien/Menu.o | Bin 5320 -> 0 bytes Snake_ancien/ModifTab.o | Bin 3008 -> 0 bytes Snake_ancien/exec | Bin 29320 -> 0 bytes Snake_ancien/main.c | 46 ++++---- Snake_ancien/main.o | Bin 3088 -> 0 bytes 17 files changed, 275 insertions(+), 290 deletions(-) create mode 100644 Snake/Jeu.c create mode 100644 Snake/Jeu.h delete mode 100644 Snake_ancien/Afficher.o delete mode 100644 Snake_ancien/Chemin.o delete mode 100644 Snake_ancien/Deplacement.o delete mode 100644 Snake_ancien/Menu.o delete mode 100644 Snake_ancien/ModifTab.o delete mode 100755 Snake_ancien/exec delete mode 100644 Snake_ancien/main.o diff --git a/Snake/Afficher.c b/Snake/Afficher.c index faa4708..460673c 100644 --- a/Snake/Afficher.c +++ b/Snake/Afficher.c @@ -1,7 +1,7 @@ -#include "Afficher.h" -#include #include +#include #include +#include "Afficher.h" /*affichage du plateau de jeu en fonction du tableau*/ void AfficheTab(int tab[H][L], int posx, int posy, int i, int j){ diff --git a/Snake/Deplacement.c b/Snake/Deplacement.c index a70ab1e..08fcef1 100644 --- a/Snake/Deplacement.c +++ b/Snake/Deplacement.c @@ -13,21 +13,29 @@ int CliqueTouche(int defaut,int* pause,int* fin){ if(defaut!=0){ defaut=2; return defaut; + }else{ + return defaut; } case XK_Down: if(defaut!=2){ defaut=0; return defaut; + }else{ + return defaut; } case XK_Right: if(defaut!=1){ defaut=3; return defaut; + }else{ + return defaut; } case XK_Left: if(defaut!=3){ defaut=1; return defaut; + }else{ + return defaut; } case XK_space: if(*pause==1){ @@ -95,7 +103,6 @@ void DeplacementQueue(int tab[H][L],int* sxmin,int* symin,int* direc, int menu){ /*Deplacement de la tete du seroent en fonction de la direction*/ void DeplacementTete(int tab[H][L],int* sxmax,int* symax,int direction,int* temoin,int* fin,int* point,int mode){ - if(mode==1){ if(direction==2){ if(VerifChemin(tab,*sxmax-1,*symax)==1){ *sxmax=*sxmax-1; @@ -110,7 +117,11 @@ void DeplacementTete(int tab[H][L],int* sxmax,int* symax,int direction,int* temo }else if(VerifChemin(tab,*sxmax-1,*symax)==2){ *sxmax=*sxmax-1; tab[*sxmax][*symax]=1; - Pastille(tab,5,3); + if(mode==3){ + Pastille(tab,20,3); + }else{ + Pastille(tab,5,3); + } Pastille(tab,1,2); }else{ *fin=1; @@ -130,8 +141,12 @@ void DeplacementTete(int tab[H][L],int* sxmax,int* symax,int direction,int* temo *temoin=1; }else if(VerifChemin(tab,*sxmax,*symax+1)==2){ *symax=*symax+1; - tab[*sxmax][*symax]=1;; - Pastille(tab,5,3); + tab[*sxmax][*symax]=1; + if(mode==3){ + Pastille(tab,20,3); + }else{ + Pastille(tab,5,3); + } Pastille(tab,1,2); }else{ *fin=1; @@ -152,8 +167,12 @@ void DeplacementTete(int tab[H][L],int* sxmax,int* symax,int direction,int* temo *temoin=1; }else if(VerifChemin(tab,*sxmax,*symax-1)==2){ *symax=*symax-1; - tab[*sxmax][*symax]=1;; - Pastille(tab,5,3); + tab[*sxmax][*symax]=1; + if(mode==3){ + Pastille(tab,20,3); + }else{ + Pastille(tab,5,3); + } Pastille(tab,1,2); }else{ *fin=1; @@ -174,183 +193,16 @@ void DeplacementTete(int tab[H][L],int* sxmax,int* symax,int direction,int* temo *temoin=1; }else if(VerifChemin(tab,*sxmax+1,*symax)==2){ *sxmax=*sxmax+1; - tab[*sxmax][*symax]=1; - Pastille(tab,5,3); - Pastille(tab,1,2); - }else{ - *fin=1; - } - }/*aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa*/ - }if(mode==2){ - if(direction==2){ - if(VerifChemin(tab,*sxmax-1,*symax)==1){ - *sxmax=*sxmax-1; - tab[*sxmax][*symax]=1; - }else if(VerifChemin(tab,*sxmax-1,*symax)==3){ - *sxmax=*sxmax-1; - tab[*sxmax][*symax]=1; - *point=*point+5; - DessinerScore(*point); - Pastille(tab,1,1); - *temoin=1; - }else if(VerifChemin(tab,*sxmax-1,*symax)==2){ - *sxmax=*sxmax-1; - tab[*sxmax][*symax]=1; - Pastille(tab,5,3); + tab[*sxmax][*symax]=1; + if(mode==3){ + Pastille(tab,20,3); + }else{ + Pastille(tab,5,3); + } Pastille(tab,1,2); }else{ *fin=1; } } - /*droite*/ - if(direction==3){ - if(VerifChemin(tab,*sxmax,*symax+1)==1){ - *symax=*symax+1; - tab[*sxmax][*symax]=1; - }else if(VerifChemin(tab,*sxmax,*symax+1)==3){ - *symax=*symax+1; - tab[*sxmax][*symax]=1; - *point=*point+5; - DessinerScore(*point); - Pastille(tab,1,1); - *temoin=1; - }else if(VerifChemin(tab,*sxmax,*symax+1)==2){ - *symax=*symax+1; - tab[*sxmax][*symax]=1;; - Pastille(tab,5,3); - Pastille(tab,1,2); - }else{ - *fin=1; - } - } - /*gauche*/ - if(direction==1){ - if(VerifChemin(tab,*sxmax,*symax-1)==1){ - *symax=*symax-1; - tab[*sxmax][*symax]=1; - } - else if(VerifChemin(tab,*sxmax,*symax-1)==3){ - *symax=*symax-1; - tab[*sxmax][*symax]=1; - *point=*point+5; - DessinerScore(*point); - Pastille(tab,1,1); - *temoin=1; - }else if(VerifChemin(tab,*sxmax,*symax-1)==2){ - *symax=*symax-1; - tab[*sxmax][*symax]=1;; - Pastille(tab,5,3); - Pastille(tab,1,2); - }else{ - *fin=1; - } - } - /*bas*/ - if(direction==0){ - if(VerifChemin(tab,*sxmax+1,*symax)==1){ - *sxmax=*sxmax+1; - tab[*sxmax][*symax]=1; - } - else if(VerifChemin(tab,*sxmax+1,*symax)==3){ - *sxmax=*sxmax+1; - tab[*sxmax][*symax]=1; - *point=*point+5; - DessinerScore(*point); - Pastille(tab,1,1); - *temoin=1; - }else if(VerifChemin(tab,*sxmax+1,*symax)==2){ - *sxmax=*sxmax+1; - tab[*sxmax][*symax]=1; - Pastille(tab,5,3); - Pastille(tab,1,2); - }else{ - *fin=1; - } -/*aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa*/ - }}if(mode==3){ - if(direction==2){ - if(VerifChemin(tab,*sxmax-1,*symax)==1){ - *sxmax=*sxmax-1; - tab[*sxmax][*symax]=1; - }else if(VerifChemin(tab,*sxmax-1,*symax)==3){ - *sxmax=*sxmax-1; - tab[*sxmax][*symax]=1; - *point=*point+5; - DessinerScore(*point); - Pastille(tab,1,1); - *temoin=1; - }else if(VerifChemin(tab,*sxmax-1,*symax)==2){ - *sxmax=*sxmax-1; - tab[*sxmax][*symax]=1; - Pastille(tab,20,3); - Pastille(tab,1,2); - }else{ - *fin=1; - } - } - /*droite*/ - if(direction==3){ - if(VerifChemin(tab,*sxmax,*symax+1)==1){ - *symax=*symax+1; - tab[*sxmax][*symax]=1; - }else if(VerifChemin(tab,*sxmax,*symax+1)==3){ - *symax=*symax+1; - tab[*sxmax][*symax]=1; - *point=*point+5; - DessinerScore(*point); - Pastille(tab,1,1); - *temoin=1; - }else if(VerifChemin(tab,*sxmax,*symax+1)==2){ - *symax=*symax+1; - tab[*sxmax][*symax]=1;; - Pastille(tab,20,3); - Pastille(tab,1,2); - }else{ - *fin=1; - } - } - /*gauche*/ - if(direction==1){ - if(VerifChemin(tab,*sxmax,*symax-1)==1){ - *symax=*symax-1; - tab[*sxmax][*symax]=1; - } - else if(VerifChemin(tab,*sxmax,*symax-1)==3){ - *symax=*symax-1; - tab[*sxmax][*symax]=1; - *point=*point+5; - DessinerScore(*point); - Pastille(tab,1,1); - *temoin=1; - }else if(VerifChemin(tab,*sxmax,*symax-1)==2){ - *symax=*symax-1; - tab[*sxmax][*symax]=1;; - Pastille(tab,20,3); - Pastille(tab,1,2); - }else{ - *fin=1; - } - } - /*bas*/ - if(direction==0){ - if(VerifChemin(tab,*sxmax+1,*symax)==1){ - *sxmax=*sxmax+1; - tab[*sxmax][*symax]=1; - } - else if(VerifChemin(tab,*sxmax+1,*symax)==3){ - *sxmax=*sxmax+1; - tab[*sxmax][*symax]=1; - *point=*point+5; - DessinerScore(*point); - Pastille(tab,1,1); - *temoin=1; - }else if(VerifChemin(tab,*sxmax+1,*symax)==2){ - *sxmax=*sxmax+1; - tab[*sxmax][*symax]=1; - Pastille(tab,20,3); - Pastille(tab,1,2); - }else{ - *fin=1; - } - }} -} + +} \ No newline at end of file diff --git a/Snake/Jeu.c b/Snake/Jeu.c new file mode 100644 index 0000000..d0334e0 --- /dev/null +++ b/Snake/Jeu.c @@ -0,0 +1,74 @@ +#include +#include +#include +#include + +#include "Afficher.h" +#include "ModifTab.h" +#include "Deplacement.h" +#include "Chemin.h" +#include "Menu.h" +#include "Jeu.h" + +#define DELTA 1000000L; +#define DELTO 1000L +#define DELTI 900000L + +void LancerJeu(void) +{ + int tab[H][L], direction = 0, temoin = 0, direc = 0, pause = 1,mode=0; + int sxmin = 17, symin = 30, sxmax = 27, symax = 30, fin = 0, point = 0, Compteur_Temps = 0; + int *pointeur_pause = &pause; + int *pointeur_sxmin = &sxmin; + int *pointeur_symin = &symin; + int *pointeur_direc = &direc; + int *pointeur_temoin = &temoin; + int *pointeur_sxmax = &sxmax; + int *pointeur_symax = &symax; + int *pointeur_fin = &fin; + int *pointeur_point = &point; + unsigned long suivant = Microsecondes() + DELTA; + unsigned long suivant2 = Microsecondes() + DELTO; + unsigned long suivant3 = Microsecondes() + DELTO; + + InitEcran(); + mode=MenuDebut(); + init(tab,mode); + + while (1) + { + if(fin!=1) + { + Affiche(tab); + if (ToucheEnAttente() == 1) + { + direction = Semage(tab, direction, sxmax, symax, pointeur_pause, pointeur_fin); + } + if (pause == 1) { + if (Microsecondes() > suivant) { + Compteur_Temps++; + DessinerTimer(Compteur_Temps); + suivant = Microsecondes() + DELTA; + } + if (Microsecondes() > suivant3) { + DeplacementQueue(tab, pointeur_sxmin, pointeur_symin, pointeur_direc,mode); + suivant3 = TempsArret(pointeur_temoin); + } + if (Microsecondes() > suivant2) { + DeplacementTete(tab, pointeur_sxmax, pointeur_symax, direction, pointeur_temoin, pointeur_fin, pointeur_point,mode); + suivant2 = Microsecondes() + DELTO; + } + MenuPause(pause); + }else{ + MenuPause(pause); + } + } + else if (fin == 1) { + if(Gagne(tab)==0){ + MenuFinGagne(); + }else{ + MenuFinPerdu(); + } + } + } +} diff --git a/Snake/Jeu.h b/Snake/Jeu.h new file mode 100644 index 0000000..e2d1357 --- /dev/null +++ b/Snake/Jeu.h @@ -0,0 +1,11 @@ +#ifndef JEU_H +#define JEU_H + +#include +#include +#include +#include + +void LancerJeu(void); + +#endif \ No newline at end of file diff --git a/Snake/Menu.c b/Snake/Menu.c index cb0e0b4..a2a16a5 100644 --- a/Snake/Menu.c +++ b/Snake/Menu.c @@ -2,6 +2,7 @@ #include #include #include "Menu.h" +#include "Jeu.h" int MenuDebut(void){ couleur c=CouleurParNom("green"); @@ -80,6 +81,7 @@ int MenuDebut(void){ } } } + /*Initialisation de la page*/ void InitEcran(void){ InitialiserGraphique(); @@ -90,15 +92,79 @@ void InitEcran(void){ RemplirRectangle(0,0,1700,1000); } -void MenuFinPerdu(void){ - couleur c=CouleurParNom("white"); +void MenuPause(int pause){ + couleur c; + if(pause == 0){ + c=CouleurParNom("white"); ChoisirCouleurDessin(c); - EcrireTexte(1350,200,"Dommage !",2); - EcrireTexte(1280,250,"Peut-etre une prochaine fois",2); + EcrireTexte(1330,450,"Menu pause (appuyez sur espace)",1); + }else{ + c=CouleurParNom("dark blue"); + ChoisirCouleurDessin(c); + RemplirRectangle(1330,300,500,500); + } } -void MenuFinGagne(void){ - couleur c=CouleurParNom("white"); +int MenuFinPerdu(void){ + couleur c=CouleurParNom("purple"); + ChoisirCouleurDessin(c); + RemplirRectangle(1300,400,300,200); + c=CouleurParNom("red"); + ChoisirCouleurDessin(c); + RemplirRectangle(1300,700,300,200); + + c=CouleurParNom("white"); + ChoisirCouleurDessin(c); + EcrireTexte(1400,450,"Recommencer",1); + EcrireTexte(1400,750,"Quitter",1); + + EcrireTexte(1350,200,"Dommage !",2); + EcrireTexte(1280,250,"Peut-etre une prochaine fois",2); + + while(1){ + if(SourisCliquee()==1){ + if(_X>=1300&&_Y>=400&&_X<=1600&&_Y<=600) + { + FermerGraphique(); + LancerJeu(); + } + if(_X>=1300&&_Y>=700&&_X<=1600&&_Y<=900) + { + FermerGraphique(); + return EXIT_SUCCESS; + } + } + } +} + +int MenuFinGagne(void){ + couleur c=CouleurParNom("purple"); + ChoisirCouleurDessin(c); + RemplirRectangle(1300,400,300,200); + c=CouleurParNom("red"); + ChoisirCouleurDessin(c); + RemplirRectangle(1300,700,300,200); + + c=CouleurParNom("white"); + ChoisirCouleurDessin(c); + EcrireTexte(1400,450,"Recommencer",1); + EcrireTexte(1400,750,"Quitter",1); + EcrireTexte(1350,200,"Felicitations !",2); EcrireTexte(1280,200,"Vous etes trop fort !!",2); + + while(1){ + if(SourisCliquee()==1){ + if(_X>=1300&&_Y>=400&&_X<=1600&&_Y<=600) + { + FermerGraphique(); + LancerJeu(); + } + if(_X>=1300&&_Y>=700&&_X<=1600&&_Y<=900) + { + FermerGraphique(); + return EXIT_SUCCESS; + } + } + } } diff --git a/Snake/Menu.h b/Snake/Menu.h index 7aa7e96..bc97940 100644 --- a/Snake/Menu.h +++ b/Snake/Menu.h @@ -7,8 +7,9 @@ #include int MenuDebut(void); -void MenuFinGagne(void); -void MenuFinPerdu(void); void InitEcran(void); +int MenuFinPerdu(void); +int MenuFinGagne(void); +void MenuPause(int pause); #endif // MENU_H diff --git a/Snake/main.c b/Snake/main.c index 1c1be1c..408c933 100644 --- a/Snake/main.c +++ b/Snake/main.c @@ -1,65 +1,5 @@ -#include -#include -#include -#include - -#include "Afficher.h" -#include "ModifTab.h" -#include "Deplacement.h" -#include "Chemin.h" -#include "Menu.h" - -#define DELTA 1000000L; -#define DELTO 1000L -#define DELTI 900000L +#include "Jeu.h" int main(void) { - int tab[H][L], direction = 0, temoin = 0, direc = 0, pause = 1,mode=0; - int sxmin = 17, symin = 30, sxmax = 27, symax = 30, fin = 0, point = 0, Compteur_Temps = 0; - int *pointeur_pause = &pause; - int *pointeur_sxmin = &sxmin; - int *pointeur_symin = &symin; - int *pointeur_direc = &direc; - int *pointeur_temoin = &temoin; - int *pointeur_sxmax = &sxmax; - int *pointeur_symax = &symax; - int *pointeur_fin = &fin; - int *pointeur_point = &point; - unsigned long suivant = Microsecondes() + DELTA; - unsigned long suivant2 = Microsecondes() + DELTO; - unsigned long suivant3 = Microsecondes() + DELTO; - InitEcran(); - mode=MenuDebut(); - init(tab,mode); - - while (1) { - if(fin!=1){ - Affiche(tab); - if (ToucheEnAttente() == 1) { - direction = Semage(tab, direction, sxmax, symax, pointeur_pause, pointeur_fin); - } - if (pause == 1) { - if (Microsecondes() > suivant) { - Compteur_Temps++; - DessinerTimer(Compteur_Temps); - suivant = Microsecondes() + DELTA; - } - if (Microsecondes() > suivant3) { - DeplacementQueue(tab, pointeur_sxmin, pointeur_symin, pointeur_direc,mode); - suivant3 = TempsArret(pointeur_temoin); - } - if (Microsecondes() > suivant2) { - DeplacementTete(tab, pointeur_sxmax, pointeur_symax, direction, pointeur_temoin, pointeur_fin, pointeur_point,mode); - suivant2 = Microsecondes() + DELTO; - } - } - } - else if (fin == 1) { - if(Gagne(tab)==0){ - MenuFinGagne(); - }else{ - MenuFinPerdu(); - } - } - } + LancerJeu(); } diff --git a/Snake/makefile b/Snake/makefile index 0f8c60c..90eaaa2 100644 --- a/Snake/makefile +++ b/Snake/makefile @@ -1,5 +1,5 @@ -exec : Chemin.o Deplacement.o Afficher.o ModifTab.o main.o Menu.o - gcc -ansi -o exec Chemin.o Deplacement.o Afficher.o ModifTab.o main.o Menu.o -lgraph +exec : Chemin.o Deplacement.o Afficher.o ModifTab.o main.o Menu.o Jeu.o + gcc -ansi -o exec Chemin.o Deplacement.o Afficher.o ModifTab.o main.o Menu.o Jeu.o -lgraph run : exec ./exec Chemin.o : Chemin.c @@ -14,6 +14,8 @@ main.o : main.c gcc -c main.c -lgraph Menu.o : Menu.c gcc -c Menu.c -lgraph +Jeu.o : Jeu.c + gcc -c Jeu.c -lgraph clean : rm -f *~ rm -f *.o diff --git a/Snake_ancien/Afficher.o b/Snake_ancien/Afficher.o deleted file mode 100644 index 2ab848c7dbb01663d9190d56f9b45b1645eade7d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4968 zcmc&&U1%It6u!IpYqe=&tSD540r0X(A}qWV1WTuGv5C&e)_j zvCT%!Fa$zHD1r}yAo`*RVz$^c#)sGkH6qwPRLnyQK?_ERut*@DGjs3uWU?_o7CbO} z@BPj>-#zEtzmPYSV{KlKhe`3UBkaydqKqw8-03&l-Db9zm9s9@yrpJt*Qw_4qG{YT zyB5sjH(E{Qx~1GuL-VRRuYSEyqSj(lq?)s;r7WtRSxdRDUbKow-<&ZHsS_ngsG4(& zPOId=DksO5v0y1Tv-?1I34esy*7!5I8iVg_g3Y{?g^83GBFoHpvy~Ve{%kWiPsP}0 z;I-9Uc2|s@--daa{=!z7cj*VWYFcWHY*w1WE4G;z7PQ1JXh|R&flU~g!r$yYSX}(s zW^oS~gPTpcvp{XHH6iYFb2j{cAx>WXMx0$Ap4~Ym2Nh;>%8Ju0Ve@-nPFc1)k6Oda z*6}5)YsE6~bS?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)l8MEvq^R;iZ$vV9H|vM+709o=I79bk*+(H;M|@OQ^0>yLAwyb2%A@AjV( z{uj}Rh}$1`VWIV}6#rN15x%(oxFw{&T>nCIqss|Q3gnz94xW9S$L)`t?zIPq%?rcN XaX`df>-#`g$Ui0G*NHE7-TwaoNri#E diff --git a/Snake_ancien/Chemin.o b/Snake_ancien/Chemin.o deleted file mode 100644 index 0482372362b597d1e3311ba638aecd31c275745e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2736 zcmbVOO=ufO6n-oDH;H34^iYTi$|clJx>!zwAuT~cY`h6p!EWSJO}bXbwy-6+t6gwH zLQB+!EDNE>6mrNVm!5kFCB@F~au0FWnfP#E*z=u5uocCsDyHr4MG`%=g|m z^X8k~k$%?3uf-Gvq$zL(_D2#0SnA&Ir+GIGeQ*MDy7OMIZl`tUe%-ORoZP09-57VY z^>HWrN_TVEvg@w4r8{q(TAhfF)^xSzH`-SJuWxWzz25|T$kjIW{JQR}>wj-{>VxFs zy0fagT3uIGU2Q{uQtNoo<>xC=^QmT>KNdB=$Ip*P&F{s0+>4`a;SL+{dQGU2Ks7w9 z-E*PpDfR$$YnTi0f*xE3z4O`2K4|cm3%{+{r-HG19H2EJPUhIVPHxB5c8^fW<0|dw zPuz|NI9K-zI>SaG8lmc)K?be}jnSx#5oE-O(aFo6_P35NK~3`zh7Zs2QPY~d@8T0B zIHGp{gqxyvYbshM7Hyr6oGKMLTh*Ehz7kjZA200f?Nv1oN8V8X;|Uxc+=nXzFX|z_cW`PHdO}F;G?rlctEVydypr0p;!_D9Z`u^oj1C-!V9VI5o19 zlzjDM;$bY)*A?$oFonmyh(B+|?}_-o2jc&<;!j2VzXS0N z9v7iQj!Nx-k9&s#2*lgmjK>f^6~Osk5&H~V0$bS5AVB#tkMA9^L2T{vM@9ZEDh!Ql zfj)zc=IN!65RGeq{yH|o-wB-Wof0zhtXL?idH9|cjX4IH#llZEyIHpL^9*jX;!@?R zX)+74g}hm=uzb06n^jH})!PSG-E&|9YO=Vi}ii-u~k zWee2XhGl>{Q>lQOFBglfgjlI;F%`d&uPT<2Ul8NDlC3V8&_9-T?Lh4`Jcm{1ouz1PIWPm$Xf!k8lWA= oMrRb}(_fzO*&zgV`oTb(^j+&2){pMRc6=@>#ui&lzZ2$v0-T&PfdBvi diff --git a/Snake_ancien/Deplacement.o b/Snake_ancien/Deplacement.o deleted file mode 100644 index bec87a9cb90a51276c74d09450cfdc8358a5bc9e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10352 zcmeI1Z)_Ar6u@Wi${(R{C!iKEdKyIta;dZjj!! z)ekqx?#}+^&3kX>&Ca~Ndo{GX!J}zR7L9FV&Yh%;Rp0N_>v*+}En$_cMYn#_d#(no zt|{G0P3l(5_!(>-$CF;W?>b}V5&P=v`-QV+WO2O~ufD!v&YF;I(QEPQ>-&0;^>khG`g(ta{?KzY%|K>;aAt%Gq&3bUEFQ$8R_Y&(tN$&%*Q2X%;W3*&<=xqQCYu^ zvpZv5kZ&tSXGi`}!N}d*y9@f+#N+>N1txnph?Zyxy8CgA=V67f3UHfUcS4x~bmttN zWCn2U&++ZbA}}^$dk5iyAVrvGOif_=5pAcqi$Q?`r%3#>%@GPfGK0 zL4gh^b7VW~>$e8h?tHRkU7%)juqId&*i^k~bM=;*hhSZ;fFl40 z{@w*5%)_)nWU^@D9+P$~Xda99aud@!{o3lv1q)9?=d4~TXXjbz*7E3jQv&{PGx27lP(7jJ=ontUL(jBxHNu-oA9 z=d0j;qr8;kzJuHbh5RGHQT~D$ME)$m8Wi$P3Vu+**$$&47LFKgM!Ok|u=-f^NXpn3 zPeob{+O#)iqzv{{JesHvCv#f%874FsiRj__R--N24!x4eXuFYUj>HoNYYZpNXe?%c zd0tkED?Sb$Q`hYh6B7a%{9c{qzbbeW{(cI@EkCT_kK!CDApe8)b7uO z=jg{9DCj?x4=H#j;Z)CM1>cU&K|%f0&u0jyc8?RDqn~gp|A&GS;s&(FIEr*?M{o}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v1o7$cSls51 z_zZ#LU4LM93eP8e?Blc#)(yX{+uLy>i;ysssB;O&r&lk-x5AOPkwgz zw%=a~pZ0sh;ddGTGjSk6-1W~jnvB1pYNXx4?ft#e!R>wgx`W&MnB~L$)kyS18L6Zk zvNa_uA|Ju!%JKsu5-i^zhAgjwq*20eY#($!eE8?#8!;C~qO{wz%W%8Hw`onPXg}DX zCpolZP>HHEk^H}cgE?+(oI5J*rqN=?)9TDIV4G|))R59%N0Q38xfq9yW85QXi*t^$ zC@I)7C=oZ)X;8*`oqnyt?H}(E^m(WDZD5N&>6(CMz5jiV!p4srlqcXp`<2)ra?#|y zgkV^;@!N78!6@|?cS4NP+F35%i@1NCFxeGj@5bfEzYA>9r)$3moq~Lr6!o`jkE?L1 z`LCIe^PR>L=O34ZwYT#>Ro`gxneE>sJR30V$F)bF?%V^!ie~-UdmS+pcl_|*i&NQu OXX3Zt5!!eP`+oqFkrTN9 diff --git a/Snake_ancien/ModifTab.o b/Snake_ancien/ModifTab.o deleted file mode 100644 index 1c74933a8b139f312701087ac4ee12d498d7341b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3008 zcmb_dQE%H+6h2PUc8ql^6GDh0W(f(Js#r}2LZC5agiuS+sp=N7x5-VN)-;JD$C0v0 zEwHGlRy3)P{Q*4jv`03HuE`$KA;h}=f<6=}qdXL;4*?a*IXCw#L2(EecveNo8UGqs5;q7^SkX7hSwtS=b4c42(*I-N|PL+iZN@A{yFr zc#Ol73@?7ad;LEp7&=A*;&c*-@FVQ0Z?D`zHP!g?C z#|U)g;R9bsd8us-1ErHc5c$bC-aF00+v>^Nh&Is;*bM2qZmrK|G8w(rRBNq>_qg`w zx#)(MY*i;(-bQUZq~I+at$V2!(@;xUTi){WvR?a5RqD0Bdb}EGe)3WW)zrcK)`jS% zmpq_8epdG#=&RMpt)=xdORHE(Wno(>jT}RR=k^Bjcc)PiI<8`j6r-pJmxhm*gSA3# z2j7JqIJ5NVpTon44`vK!UY*XCOn~u3;zM<4{BkO)#?EUoEvAl*j-4NUKlUzWLW|&~ z;zfsrEC_+JPM9!-uj!D;UTzPd+?)cXJfIAo>N~N5&esvAi)@Pe;nL}WZ$pXx-ta^S zDa?0)c>(4r*pWY@kUz+X8i79!yZOUizi0qq_B2l`PT}&b#Ah`khA#~aJWXY*a{)MQ zTQ`0(0KXD|8;Daqq7Jqvh+ade&b zI45R~nKd-mEW4o17_I@@bg>AUW49M+JC`%_=*!!#so}f*PSG{e^L#ytFN3p%s74C1`Z1FBp=XGBx+1$mY8 z-{QD04gBo~INzUtgva#LkE@UI{PG!7Dxs%dl+B<219TELDwA;DN1K8szP0UDn@e*M z=VNIuI5fV=^)g0tp%eHNPUyY!*FVJd{<_5e3q5_uD5hV3jq9%oA|L&F>O!K%xnB&c zR1})XPv=kXyU>gC@0Oc%cX<9u{=oDu6Xe%ZO#j&ja`$zwkZu$*gzuS?r HnP2}e+k$46 diff --git a/Snake_ancien/exec b/Snake_ancien/exec deleted file mode 100755 index c3c92aa40328e4ee626a936da3b4f9086748b3e4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 29320 zcmeHQdwf*Yoj*w!zz0lxHdVxnih@E24-p?|LKqlaf-wXiU3HiwH_4RAOuRFr_~4-- z%6K8W(GpC z?jQTf(ai7sUg!5azu$S>7x%95EMAbGm&a5oVAnFjN>3A%Qpp&-LRJ7u*&H?ozvJ0? zY$WgzoF@3C0)Q*Z{`^chTG9&uNw0`1S>QN9W(q0~36fr}^5V&YqaZ63IO(~lDsd+q zQzGOPRD8=`rQkCMtfl~zwCZ>7|8!ue8OL9#(*>F=U-gRxgB^}4G>J5KnVATtG(y&It? zLoFqa4OE(|q`h2uD3#+=K^a~)Ef}boJ!@L9ZfYf_oo$P2?fyo zbF}kh4thzBcFxN|e=kQnMLFaTK>jrLW%g7vDky5KeT+KM+Z}Y~^EEVuL%vAVZ$y1Q z=37)<;j7aPy&({Z>PB@%c`zK(tNk@WUGTDUJheu^(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gv2y3WRENi^Xk@^ajO1c8-yhY)&QL*cfa3dr#RP9{;Tsp1t&>8b^hn{-w!^W`zd{OeyAYr zlT^q@inG#J=ZOK($YrIk&NmfQ=a&%Sh1#%}JAu%-oYGh4Zwku87wi00$tk!R`gCrn zaCLsDV5v0b^k0%$8!8l2rLWFU73`IQ&iJYRe^ctulXB{OS3z}tO!{?xX5D07Q6k=6@5Yc709iSpF)dJN^H6(8)y=e|7w<;CmKBG@#-qn`7G?`s(~m!RM5qgiiZ=9r_!W3PA<8AIJV1 z5Xad7p97?+uHUHdo;m$hxPtFN2WLr^zPi4%=XPo>JzfNs#+7~#7&La|vSFQ%s_)p* z{ZcA4{;4QEmB+)Nk%-b)-v?^4#Lzq9MB z^XB!-g}m}pHKX(_9Lhvf{y)_$I2)G>I7tBOSF>uOGDg}janO}Mt?%|izEZJ6#}MKC zuH_uCA~~^XAEI?u`LEWGlR#6x3k~s`s26awgQ@H)S(>g65zgwRg&E~+hk^rT{{wAp B*K+^> diff --git a/Snake_ancien/main.c b/Snake_ancien/main.c index 44e9f4c..1c1be1c 100644 --- a/Snake_ancien/main.c +++ b/Snake_ancien/main.c @@ -33,33 +33,33 @@ int main(void) { init(tab,mode); while (1) { - if(fin!=1){ + if(fin!=1){ Affiche(tab); if (ToucheEnAttente() == 1) { - direction = Semage(tab, direction, sxmax, symax, pointeur_pause, pointeur_fin); + direction = Semage(tab, direction, sxmax, symax, pointeur_pause, pointeur_fin); } if (pause == 1) { - if (Microsecondes() > suivant) { - Compteur_Temps++; - DessinerTimer(Compteur_Temps); - suivant = Microsecondes() + DELTA; - } - if (Microsecondes() > suivant3) { - DeplacementQueue(tab, pointeur_sxmin, pointeur_symin, pointeur_direc,mode); - suivant3 = TempsArret(pointeur_temoin); - } - if (Microsecondes() > suivant2) { - DeplacementTete(tab, pointeur_sxmax, pointeur_symax, direction, pointeur_temoin, pointeur_fin, pointeur_point,mode); - suivant2 = Microsecondes() + DELTO; - } - } - } - else if (fin == 1) { - if(Gagne(tab)==0){ - MenuFinGagne(); - }else{ - MenuFinPerdu(); - } + if (Microsecondes() > suivant) { + Compteur_Temps++; + DessinerTimer(Compteur_Temps); + suivant = Microsecondes() + DELTA; + } + if (Microsecondes() > suivant3) { + DeplacementQueue(tab, pointeur_sxmin, pointeur_symin, pointeur_direc,mode); + suivant3 = TempsArret(pointeur_temoin); + } + if (Microsecondes() > suivant2) { + DeplacementTete(tab, pointeur_sxmax, pointeur_symax, direction, pointeur_temoin, pointeur_fin, pointeur_point,mode); + suivant2 = Microsecondes() + DELTO; + } } + } + else if (fin == 1) { + if(Gagne(tab)==0){ + MenuFinGagne(); + }else{ + MenuFinPerdu(); + } + } } } diff --git a/Snake_ancien/main.o b/Snake_ancien/main.o deleted file mode 100644 index a8ea7aee0242e87504e3248a1894d1f8f0a27345..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3088 zcmbuAPiP%Q9LHzV#KxL5&mdArk#~utXxF?(u&E;NnWWiDQevB0K}0t%lVmZwFYF&k z1rbSCSeFMq7!RJj>9Gd`Jy>``As#&RP^yRrDF`X_pauQQJc6YEVSA|$*!)%CMv6A1cj~^|aVrq_H1`2FIigW*W9bS}D`8P0~(e8UmA6&NKukZ6edK0n#Qj z4VxhCENQo}tpog61J&0?C>QasG^^u-BS=wv&>R0wSgaR6iAYYmixkmOsuUr)ZzcO; zGL5l~owhM@-K9**c{SS&Nfyz|X%i<%cX6tPG~0Q48!1ZnP$;>2G5PL7(pEkaQNvUu z6keKLr`EJMSn%9VjLaLU805}0vw|#4$2e#(lin6bOPitu>8_|tx+jZ;^VYiCvC^zI zG72RTPPAatBC8`i5B|m>nP**3O-h=6FCW z+QaMQy_@?uA~l!$xD_1}C3^T4O=i+XlGyyr%(?Q!{KYG$%9SazVphs$CeKVwzEpV; zSB6?Y^)mGV>SV_Hn9%}L&5*kKMxT-s#s`;}v0XC8hK>&2pvjZO(a}u0aIAK`^hw{$ z@MD4$|G;lQ`$K$Pd8;EmUWP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