From 7c6fc9e1fa41b1973dc99a4d0a0e1c3b362b1ca6 Mon Sep 17 00:00:00 2001 From: beaur Date: Mon, 20 Nov 2023 16:09:51 +0100 Subject: [PATCH] avance --- Avance.c | 35 +++++++++++++++++++++++++++-------- exec | Bin 15944 -> 16000 bytes 2 files changed, 27 insertions(+), 8 deletions(-) diff --git a/Avance.c b/Avance.c index 7aadaf4..39d2622 100644 --- a/Avance.c +++ b/Avance.c @@ -44,28 +44,47 @@ int main(void){ c=CouleurParNom("green"); ChoisirCouleurDessin(c); int tab[H][L]; - int i,j,posx=0,posy=0,n=0,sx=1,sy=1; + int i,j,posx=0,posy=0,n=0,sxmin=1,symin=1,sxmax=10,symax=1,pause=0; unsigned long suivant,suivant2; + suivant2=Microsecondes()+DELTA; suivant=Microsecondes()+DELTA; for(i=0;isuivant){ n++; DessinerScene(n); suivant=Microsecondes()+DELTA; } - - suivant2=Microsecondes(); - if(Microsecondes()==suivant2+DELTA){ - printf("salut"); - tab[sx][sy]=0; - tab[sx+1][sy]=1; + if(pause==0){ + if(Microsecondes()>suivant2){ + /*tab[sxmax][symax]=0;*/ + sxmax=sxmax+1; + tab[sxmax][symax]=1; + tab[sxmin][symin]=0; + sxmin=sxmin+1; + suivant2=Microsecondes()+DELTA; } + } + for(i=0;iV<$pi-QKr!k9eF2Rq*s$;_bP!b_?Mgdda zLiff799hh=EV#taKa38yiHXX#Xi?*$TVjHXrY0=HmVJ}SobK)1dta-dx4Gx*p7T5R zopay29oo~jx65gdTL~W_!3ZhoUT|0%O%>{B_pmRGnuS8mV5eTmNrmc!71SpkH3;n_ z?4$Q>^W8#Aa)=r<$Ijfgs^)!{?;UyZ;+A#ovrc?@EB_*VoU)O=1vXJN$RCNOCkbTK%7<$f>xiF%zno@N= z=U99j_Ez|Ln4c;1xF~uOi*g`|_2>b|VwJQ+_OYxA>jItn$muHY6R*K?R=8HSpNPWS zDAMg=P>FO5@QEtbJ<)?wmDgGAWYtxB+2K$>XNN`ZR2q?0MfqD)j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