diff --git a/ChargerMainMenu.h b/ChargerMainMenu.h new file mode 100644 index 0000000..796f424 --- /dev/null +++ b/ChargerMainMenu.h @@ -0,0 +1,27 @@ +#include +#include + +void ChargerMainMenu() { + couleur c; + int apple; + int mainMenu=1; + c=CouleurParNom("white"); + ChoisirCouleurDessin(c); + ChargerImageFond("./images/casinotable.png"); + EcrireTexte(587,60,"Match Pairs",2); + DessinerRectangle(460,135,400,110); + EcrireTexte(588,200,"Easy : 4x4",2); + DessinerRectangle(460,315,400,110); + EcrireTexte(583,380,"Medium : 5x4",2); + DessinerRectangle(460,505,400,110); + EcrireTexte(588,570,"Hard : 6x6",2); + ChoisirCouleurDessin(CouleurParNom("red")); + RemplirRectangle(1260,17,25,25); + ChoisirCouleurDessin(CouleurParNom("white")); + DessinerRectangle(1260,17,25,25); + DessinerSegment(1260,17,1260+25,17+25); + DessinerSegment(1260,17+25,1260+25,17); + ChoisirEcran(1); + EffacerEcran(CouleurParNom("orange")); + ChoisirEcran(0); +} \ No newline at end of file diff --git a/ChargerMode.h b/ChargerMode.h new file mode 100644 index 0000000..92b54ac --- /dev/null +++ b/ChargerMode.h @@ -0,0 +1,56 @@ +#include +#include +#include +#include + + +void AfficherGrille(int* tab,int nbcolonne, int nbligne) { + int colonne; + int ligne; + int image; + int taille=15; + int i; + int sprite; + char str[50]; + srand(time(NULL)); + for (ligne=0;ligne=1) { + image=rand() % taille; + } + else { + image=0; + } + printf("%i\n",taille); + sprintf(str,"./images/%i.png", tab[image]); + for (i=image;i