From 24fe12aec29948e261f94abac4958285c546c227 Mon Sep 17 00:00:00 2001 From: rohaut Date: Wed, 20 Dec 2023 13:40:58 +0100 Subject: [PATCH] cadriallage du jeu --- JEUX_SERPENT/IMG/fond.png | Bin 4455 -> 4691 bytes JEUX_SERPENT/Jeux | Bin 21904 -> 22160 bytes JEUX_SERPENT/scene.c | 32 +++++++++++++++++++++++++------- 3 files changed, 25 insertions(+), 7 deletions(-) diff --git a/JEUX_SERPENT/IMG/fond.png b/JEUX_SERPENT/IMG/fond.png index 9a649b08042e7737f6249987c240b9441148b5e1..50c510566bc8dac3580649a62e09bee961dcba48 100644 GIT binary patch delta 680 zcmaE^bXjG>O%)?6BLf9PV=H4bD`P_jMh3jDZwG+0ttv6aPxqTYDT15NZ3r ztczcZFHNBEM8MoPiYPZ zdCcP1bA9hJ>y3;djmqjbz`g!p(F!0-DhD2l4fq0lrmX| z!-LmI7spewU;@(iba4!^IQ{m_K|uxu4wj8a y8;|A2%(AGT%@lM%c?ILMG98;1Nhu(x;}Vyiz_?}aMqW!$!t-?Xb6Mw<&;$UFVGZE` delta 612 zcmcbt@?2@cO%+2cV*>?411n=QD^m*wMh3jDZwGJ&%Rv#J`gDwjPHaWRAuM zA6?(oEbHQ86r#R+MMv^lCqb>2sD+{IlfCyZ@N}N^=#j<_F_}LRYpixyyngjSi=#a3v3h7MH^frSgYgidV`TpFr=)T!&+W4nKe*YziQD~5CS$Z)T4XnynS zVEz9G<=eyRvMzaZ9c?@(e*C8d^RBW+x3h)&`em0FGO^5W)ZY7a{guX>{+F_Kb&FVd za+t-h>-yeg)+=vVsP1f*8qRe|i6Rr82F+yLn1a$W@=|rF*HxJOieT})=f?_PS!O^ zvM|+6v`DqkHA*%!Gcd8RFf=qbnQX_poX61E*xbO-!obwj!f^6O)_h)2G>5>Vd2%kB zBC5#d*=%1JHy3dxaIgp+yMAx-H95sY*hr((@86Hfnd6Mtb?;rh z>#miZHRs>^`ycz?|K4ZsJ?BjJEzZT|88#bJDU;1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! z3>2~sp++jblpIz$+FCs47lC?h-@}mDpW+10cNg8yCGNBce1Z_lUWw0(5rEEu^RmYk z`FU+7EmOF%CrO$~agA`ywmDG%d?(PQV@&H?!Pe&4)DKug-q^vj{d|s;>qzS(Y*tv5Gsv0Zj6yPh9}U!2yVYFaryIn6vRlVlQA4!CV={02xMNbPJ;L<_5dkl9bZx-N zr}sxD!754yd2`H>R(I|fI6s@{=8+Xv)#|s}$0eTQ7u!^cPxixSO8<-K{fCDiP00Dc zBb3;RK5X@B`FK!EW($fd?)oc`guDo@$G*2CYmMX zJokoDkgV5Rv$Xou&*~OgIUSp0sS!ok5o=4iV02&p%k)(%Uv}u~ zOdW3xSu5G~eX0`2N1IrBVLDq;IGz1i7|ntv?x@;7@olxL=<(UA`T*NiWHSfJz4XdO z>;}+RdJ5lOIgF(g+k&@CbUT|@JR;@un_N^v?r;MwDZ;Rcp6Wkm4rg<=$qg~k6Ly)?jH diff --git a/JEUX_SERPENT/scene.c b/JEUX_SERPENT/scene.c index 2e75b5a..e77be2f 100644 --- a/JEUX_SERPENT/scene.c +++ b/JEUX_SERPENT/scene.c @@ -2,6 +2,15 @@ #include #include #include "fonction.h" +#define LIGNE 40 +#define COLONNE 58 +#define TAILLE_CASE 20 + +int i,j,posx=20, posy=20; +int p=0; +int i=0; +int pp=0; +int imageMenu; void Terrain(){ if (pos_x[0] >1160 || pos_x[0]<20) @@ -12,11 +21,23 @@ void Terrain(){ /*Fonction Pour créer la première scene du jeu*/ void DessinerScene(int segment, int serpent, int pomme){ - int p=0; - int i=0; + for(i=0;i