From e234c3f872f8b6b074a3afd6a1b145cf60818db2 Mon Sep 17 00:00:00 2001 From: brigitte Date: Sun, 10 Dec 2023 12:27:36 +0100 Subject: [PATCH] =?UTF-8?q?correction=20bug=20carrer=20vert=20en=20haut=20?= =?UTF-8?q?=C3=A0=20gauche?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- JEUX_SERPENT/Jeux | Bin 17480 -> 21576 bytes JEUX_SERPENT/fonction.h | 2 +- JEUX_SERPENT/main.c | 2 +- JEUX_SERPENT/serpent.c | 3 +++ 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/JEUX_SERPENT/Jeux b/JEUX_SERPENT/Jeux index 9b6ebccd309651e2e790c4f49ba52f1114e97d13..195efbe2ec9ad307f87c32ef9c4adcf4652eb381 100755 GIT binary patch delta 5241 zcmZWt3vg7`8NPSfV;%&OO|oPYV-jg1m};^lAqki#v9O?&h*b*0@Q_lVj6*H>BC<$~ zvR)Ts4k)yY1*%TOK2l>_WOyv`v8e`F5c+V`#`wrCNiAAvBW8O0{pX&$++FTW&iViE z`(Nij=bpQh-fe1cr`mp_di%4*AD1PiDdI6_Md~V0J27rSTV_68oiw}FKm&7Q=TV!X zckPy5G8)0x;4dWoLeeiZmmg41Ib@EO=**w8Ep=R#gI~67&y1|Pyk;o;p?}BMc{6`x zPk8UI9pC)9d(W6h?Oqu(QKoKAH-z3eT#@+RW`j5FO+7Hrz^UFbhA75f3!Y@bLlXCr zL$ZbVo5f+Q1@E`uP7AKcf)apH`^_iOg3JC2D$RmptGuSY;<6AdiYiKh1*c-oXR-yS zOIEwI6+hdixsCB7+a^{MXy z){FWursg+5B7HS+k$xRdQ4i^~=aG=m50OrL9SI2iHPY!YM!JN4fOL92BYTCupLE)4 zZ=_uSKPQ0pII>0P9i&rtBI||z6zR05k!3>PN;;kDNVCu%A)O9$q(SKSlTL>?;uiW^ z(rND_1wvmzI<|a{5=j%lA_8cyBZ|=HlTLdax$r*#MRQ0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rmP~|1;_UKedk>l;(ti0KDia=*oeuXk3^G))MAW-Ds zLv0_n7cCW6i@@8V#>N!hSvYEQSz!K`vDhyW<1^6fv0g!r(^xyu7&ow1;qj#R=dAz5 zV#Bch73);2P54^8h;XxI4a!4woQa}L>@NPS zKtn5!;iuy!FBv|_kDPr_zf#dF^G&U)XSbBzT1NL&r7x%k{Mb;-6s&Q*Rzqr`-wxUf zeJ(Xp+&?SD@;?N6;N4j4hgjo!?ZvqNWzhatVGv3(I2xx8jhtCB^6Q__I}|O0na&uFsPUuEh-+5a0szdz19PitD#SKd*D& z<`J*-$Z9DhBNQwbC0Ne$#}}&Qe9U;iI$__z@m>|+Pg?KI`Yu)HyYH zo2gY^7iyRCzRt61z19XS?Iu&(jB~5?y1JZO5L!Bc8osO6Wx3)B7vsFCY%k#FYHM?< zB-?IkZMe)Vv~>19-8VQ@eV#9_^QKwPK?~niH!96-n!5S5x{(%YaP$7t;;7xt7XX?6 zu?m**-49VqDZlm*wU+Y!(?_P6k4MnU7d%7}FW(KM%Y56)__gUH9VR+dCfS`fUQ$0Y k)kJ;xr+PMTs4rH_`0n}%>L`A#enQ${Jm;e9( 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