From 9b5560c17d8fb85c090c1651ba08cce6f7daff22 Mon Sep 17 00:00:00 2001 From: beaur Date: Sat, 16 Dec 2023 14:11:35 +0100 Subject: [PATCH] separation du code ajout des menu --- Snake/ModifTab.c | 81 ++++++++++++++++++++++++++++++++++++++++++++++++ Snake/ModifTab.h | 15 +++++++++ 2 files changed, 96 insertions(+) create mode 100644 Snake/ModifTab.c create mode 100644 Snake/ModifTab.h diff --git a/Snake/ModifTab.c b/Snake/ModifTab.c new file mode 100644 index 0000000..f9d9a14 --- /dev/null +++ b/Snake/ModifTab.c @@ -0,0 +1,81 @@ +#include "ModifTab.h" +#include "Afficher.h" +#include +#include +#include + +/*initialisation du plateau de jeu*/ +void init(int tab[H][L], int mode){ + int i,j; + couleur c; + c=CouleurParNom("dark blue"); + ChoisirCouleurDessin(c); + RemplirRectangle(0,0,1700,1000); + DessinerScore(0); + DessinerTimer(0); + /*initialisation de la grille a 0(noir)*/ + for(i=1;i +#include +#include +#include + +#define H 42 +#define L 62 + +int Pastille(int tab[H][L], int nb_de_pastilles, int type_pastille); +void init(int tab[H][L],int); + +#endif // MODIFTAB_H