From da0efe9cb0efda7d83aa8243b61426041aebca90 Mon Sep 17 00:00:00 2001 From: brigitte Date: Fri, 24 Nov 2023 15:20:01 +0100 Subject: [PATCH] =?UTF-8?q?ajout=20d'=C3=A9chap=20pour=20quitter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- JEUX_SERPENT/.nfs0000000002e830c500000019 | Bin 0 -> 16664 bytes JEUX_SERPENT/main.c | 11 ++++++----- 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100755 JEUX_SERPENT/.nfs0000000002e830c500000019 diff --git a/JEUX_SERPENT/.nfs0000000002e830c500000019 b/JEUX_SERPENT/.nfs0000000002e830c500000019 new file mode 100755 index 0000000000000000000000000000000000000000..8a87e14ca8ed905b91a2679dc6bee7b8b8c8c8f3 GIT binary patch literal 16664 zcmeHOeRNbu6`xJI5TKBNP5EerwJi!&mhe#uXkbG=cvNU9gj!qM*JbmPY)`VA?rv(p zkETUET~khJkEixa58Bo$R;}98Q)q<^R06fua6DD~EY^Nxr3w|SK`ZO;&fL4%ee7zF z{^1|)yB@Z4(+1WTNKtapZHtLcC&oC8s(#R1th@5&V@R_`8evZ7QO_qX@2SyR9=CvEzwg zEMeQqUe&zDZgFBxTR5I@V$EynJE9S%Ik>UIF|vY^`e=8D(;ZtIjMYawyQ1-6B;ly~ z_GmaB2BKvRPCOotsC7b2sPP5aaErPK&C$_#T76w<>+8PeE zXW2F3P%IjELeWTz6IadAZpfH4M(Pp?hkUMzgcIRlM>y`pR>p!|?ctlc(U6$q#G0Il zlZe4zYils%#NajZUKIS_=UUv2pK`kSz4x6;~vxarS!yI z_u#QsuC8LNds-Nej4~AjPf6wtd0toXpgh3yg5W8huX_X9Ec<*HKDFH7^bD0LhmZp~ zxIC)}AI!nW62R$j4n9sm&?7l`-tQ)0lxSMzE@_}52j@qy#;bDh+~?es99+-iT3ab! z4o-cOG%H|AlEN?D&xCCV~`)|O{0_UY;}mplhJGxK@ml`{e;5#LU-^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8Smg4hYAbxW>&Pr&H))EMeBB%6z!02MGMOxiE+yZ5p^ z6H(9hUx4xK->oP1?%yA^l~OL1v1cSEe~K#%@b8D7!*rjd{qp=A15Da(EKNSFPg`Pd ZtE+PHE4uVEEoA?R#YW>?mw}5_{{%fe{bB$B literal 0 HcmV?d00001 diff --git a/JEUX_SERPENT/main.c b/JEUX_SERPENT/main.c index 4be8b40..b2a1fe4 100644 --- a/JEUX_SERPENT/main.c +++ b/JEUX_SERPENT/main.c @@ -10,12 +10,10 @@ int seconde_actuel=0; int old_seconde=0; char timer[6]; unsigned long int suivant; - int go_on=1; - int serpent; -int x = 580; -int y = 350; +int x = 600; +int y = 400; int direction = 4; /*1 : vers le haut , 2 : vers le bas; 3 : vers la gauche, 4 : vers la droite*/ int t; @@ -34,7 +32,7 @@ void DessinerScene(){ void Update_Timer(){ snprintf(timer,6,"%02d:%02d", minute, seconde); ChoisirCouleurDessin(CouleurParComposante(0,0,0)); - RemplirRectangle(0,730,1200,700); + RemplirRectangle(0,700,1200,800); ChoisirCouleurDessin(CouleurParComposante(255,255,255)); EcrireTexte(10,760,timer,2); @@ -82,6 +80,9 @@ void Controle(){ break; case XK_Down: direction=2; + break; + case XK_Escape: + go_on=0; break; break; }