From 04cb573b9b1b38756c73ac76a8a39f46b88fb820 Mon Sep 17 00:00:00 2001 From: brigitte Date: Sun, 10 Dec 2023 12:09:56 +0100 Subject: [PATCH] resolution bug pomme en dehors de la bordure --- JEUX_SERPENT/Jeux | Bin 17480 -> 17480 bytes JEUX_SERPENT/scene.c | 3 +-- JEUX_SERPENT/serpent.c | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/JEUX_SERPENT/Jeux b/JEUX_SERPENT/Jeux index c2debecdaaafcd61bfd89a3c6199df24b079e553..9b6ebccd309651e2e790c4f49ba52f1114e97d13 100755 GIT binary patch delta 2298 zcmaJ@eQZ-z6z^?&pxp=EWMvE)-39}OzyzGoAd!y*s+&zL^p^whj5;CS&VTulrI{r1(xM`=Z=Whysg`o9(YfEdfU#=9a}>?Y^z)| zYO*Yr!z_*en4LnqohdYeQm8wPT0--OH`&B>H8x^p$=Wq**7(A|mxKrGN;ur_sW|o4 zsj`Zw5(z|v%ZFNhTfD$qYwLOio5^O>opcERCoa03`LQb4EU#+Xzab&nEKDF7=I()&7AA7K@F; z&erG}u$^(GM!y0J#$z?=1-3FS)aVQ_k1N?4btZAM`7i>1>w2)u6|8=sE=fBf3M53m zOOo{wz<7Z|{YC--F#bTo%2a$3XA9~VgQ_!}Y|M05B%MxRPtvmnV`t`TX4q#x_B3k2 z={zpyAa6;HSY}*d5F5r7u7lhgaRtvp?3J`~uyB1!_yTfa;QujlKZ3Yp01lW zI~oa?D2$Fey1P*%m%|V-*+F>X<$O~jqv$z&Y1}u_`=r@Awdmy%RATf_HRr+|`{iHg z9k+wMa;?nL1vna%3QD6MEV(Z(M~q83X&x)x-vMysbYC8ypw^BUUj7xk+w&!DN-2Yb zl^Z9r(%*n^hH_a_kbdP>a3Wm96N6nBV8bY26o8Rs&uwo0;aD2YpTz>Voh|JfXFSf0 zlhB`%9PB|>u9WTqPf_R&78?BonbG-cC7lMA?vtoxKK8Hv?OcctN*51WzLNZz&! zZ=`;zbY~k?|KUe~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0Ir;D&GwN-ZQj6PdpO;eE9sMj zvazpnow2dN;a(0eN>~%;lP}#ucFAX$+Bb6=7L@-y0A=#zU2cCnrmFqZSm4w+(#~P( z3teB14wYo%4C>{rDGEGJr#q^X!jP%nZ;;dhES&+wl%pLV#z!mtKH=Cxu=EZUO1kgDB~DL{GH3 zZn&gh8S;;22p~v4M1EpLh5~ixOKMGsz6OXFKqtJ?!4geto_}8t`!88UShVZpQk^-ITa2C0jXS5< zeic|xIwv-P^{1U*#u_`%XA^L4yjqmIu>ID5-L}Sse}YT6?c^f3rXDsM!LcI;pJI2S zuafK>+(%@K;V-J*RJ^xp5&i_m!s$tjb1=5xALm_+b03-JdW`cPn`SG<>li~APyJ(> zH!*%_bQSLzlFwh?jQ#`GTAt5IvpTHV>HReR diff --git a/JEUX_SERPENT/scene.c b/JEUX_SERPENT/scene.c index 25c1bc8..511bed9 100644 --- a/JEUX_SERPENT/scene.c +++ b/JEUX_SERPENT/scene.c @@ -33,13 +33,12 @@ void DessinerScene(){ pomme=ChargerSprite("IMG/pomme.png"); for (p = 0; p < 5; p++) { pommex[p] = ((rand() % (58)+1)*20); - pommey[p] = ((rand() % (35)+1)*20); + pommey[p] = ((rand() % (34)+1)*20); AfficherSprite(pomme, pommex[p], pommey[p]); } } /*Apparition aléatoire des pommes*/ void Pomme(){ - for (pp = 0; pp < 5; ++pp) { AfficherSprite(pomme, pommex[pp], pommey[pp]); } diff --git a/JEUX_SERPENT/serpent.c b/JEUX_SERPENT/serpent.c index 7c45c61..8cf65c4 100644 --- a/JEUX_SERPENT/serpent.c +++ b/JEUX_SERPENT/serpent.c @@ -51,7 +51,7 @@ void Serpent(){ if(pommex[p]==pos_x[0] && pommey[p]==pos_y[0]){ segment+=2; pommex[p] = ((rand() % (58)+1)*20); - pommey[p] = ((rand() % (35)+1)*20); + pommey[p] = ((rand() % (34)+1)*20); } }