From 12f9b4a49c9d6bbc1a28fb28416849b1ac8b556f Mon Sep 17 00:00:00 2001 From: brigitte Date: Sun, 17 Dec 2023 12:58:38 +0100 Subject: [PATCH] menu pause --- JEUX_SERPENT/Jeux | Bin 22136 -> 22216 bytes JEUX_SERPENT/fonction.h | 6 ++++-- JEUX_SERPENT/main.c | 18 +++++++++++------- JEUX_SERPENT/scene.c | 2 -- JEUX_SERPENT/score.c | 1 - JEUX_SERPENT/serpent.c | 13 ++++++++++++- JEUX_SERPENT/timer.c | 1 - 7 files changed, 27 insertions(+), 14 deletions(-) diff --git a/JEUX_SERPENT/Jeux b/JEUX_SERPENT/Jeux index 69f9f7ddbde1de62e154ea5069188e5aa5a1d119..ce0df467703c0c729129b4598a709abecb185c85 100755 GIT binary patch literal 22216 zcmeHPdvsLQx!;p;AiR>G45Fw^ReVs5Awb1p!y2*K<;7p2TxONpB)$($I4S%oJ4~5+%J%sb!SlD9Q>≠Tu%CeR2 zJyXajs`$zJiUprp=(nXaikkH(HqkPn7hRl6^JKf(ebTPM43c20~F4 zPjZ8PGo@WCEeDTMIX^OH)oYh}R$3|L6{R{TEqg!I_#b$xtGUeku`9{S@|f=zl@zj5LDzFqRIdIvi=_&&nWQ4cT;d-p_y^%z$sm zfIpG}r+7K=v!=@dIIJMbv*7;)X>cE~bp9tY;4K;OPcz`tGsNwC8RSbd$bTaPzCDAT z-5Kz6GuUA+S96=s>k5Y4fso6^Ts8HJU5$D`Z}tR3dZ2!BMXS%N*SlA>>VlV+Q{(l7 zJnmLcP!B8!xcx1jHDR4q1av)6t$X!QKxg&7a6^mEs`WsdSw_HB-g%*r?hQf57jD(V zfm(NFQzH8r^#^gvZZ!0ly=Jq-b0P;c;g8}%ToXz_W19td-_Nhy+?+uIDsq3H?e^?Ezi(Bcj>>w#tdfCr^{O-&y7rHVl>U~j02`NN?g3whem zXcuOR1{t3=H_Qj&MkDZscDJj^<3+RA>kLB8)N-0ZimB8?u9BkZrO9kb z(N*XqoYj~!_z!bQ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Tt8>e73rN`k)g|tzNk;_Q)1hkBr9t6%~!l$Z13W&SyzpHUotQ1L`R2xTNJgg3U*1M zL4ZA4TCvkh5C;ntM?&5f?1_R+R(OY(V4JTwK!-zQUgF8%@}4cKrdWqM`eIWD+8*$3 zRKp4$H%B7e6E^Vr{LxsTRq1!y_HW6&JLKx*3qs+e?PTbv$_-nxg0OCLSPk9m{b?@6 z`@Tp7@rE4@MLO~r?9HGEaDW0V8nKCtKdL%z+ZiTZ1vYz8Z9)(ET+w}Oz@9Q;5s3va z#jZ9yVrwyW<*UK5cfQHq?1qLYMm^l5tD}=a?o8vwV2;8`do&!v!4U39S6kG#88jMJ zv_+S&!40A<-0h)gz}?&)b9aP89f5GP%K~kV1+fKIu#utVD^@Rv`kIAQZ}CN1guAh; z9aShA4J!#=i^_2!)tK=@77n!f$bd^7tx@5Y?R7`7Cy#K;GtnIm$tb%6E#9UuUbA{z z8eywBW#RSVd`CmcLYLv#*B11n2_g7G=9U#GXBbYx?Wc1SG5;S(v@U{MFMfOe*?sKz zb|YOA=~~m5z#N4iE_X7Gw_h8J)BCk)elZGGd;7j^Cu&8e`hHr&t8MnTV&12usY`O1 z%x-@kMEHj*da^!1U|g%1T<>(TalJxJ4eETBG8?6kdJmk9!+CTn}W zzND#MPlAd}_W0BD4z1m2d%a$xDZY%CNw;6?X^Q`)5wsShdA%N_X&Kww+t09|=TVBO zw%6-Xn)b4yuHWAOAF%xj*3;`-Y04cYdwK-6+y4_VQqlg?_W^uApx6DNB9s02)9r`V z-oJ7 gsq%Si6#bP=sO#0bbb8uUr0A8kN@Ir2z{ZOI1iyizHUIzs diff --git a/JEUX_SERPENT/fonction.h b/JEUX_SERPENT/fonction.h index eff296e..c57c78d 100644 --- a/JEUX_SERPENT/fonction.h +++ b/JEUX_SERPENT/fonction.h @@ -3,7 +3,7 @@ #include #include #include -#include + extern long int attendre; @@ -12,7 +12,7 @@ extern char timer[6]; extern unsigned long int suivant; extern int serpent, tete_up, tete_down, tete_right, tete_left, queue_up, queue_down, queue_left, queue_right; -extern int x, y, direction, t, segment, i; +extern int x, y, direction, t, t4, segment, i; extern int pos_x[2400], pos_y[2400], old_x[2400], old_y[2400]; extern long int vitesse; @@ -21,6 +21,8 @@ extern int fond, Nbr; extern char score[4]; extern int go_on; +extern int go_menu; +extern int pause; extern int imageMenu; void Pomme(); diff --git a/JEUX_SERPENT/main.c b/JEUX_SERPENT/main.c index 96ff829..6060de0 100644 --- a/JEUX_SERPENT/main.c +++ b/JEUX_SERPENT/main.c @@ -1,7 +1,6 @@ #include #include #include -#include #include "fonction.h" #define CYCLE 10000L @@ -22,10 +21,12 @@ char score[4]; int go_on=1; int go_menu=1; +int pause=1; int imageMenu; int go_menu2=1; int t2; int t3; +int t4; /*Fonction Principale*/ int main(){ @@ -57,12 +58,15 @@ int main(){ /*Boucle Principale du Programme*/ while(go_on){ - Timer(); - Score(); - Collision(); - Controle(); - Serpent(); - Pomme(); + Controle(); + if (pause==1){ + printf("test\n"); + Timer(); + Score(); + Collision(); + Serpent(); + Pomme(); + } } /* fermeture de la fenĂȘtre si ECHAP pressĂ© + Menu de Fin*/ diff --git a/JEUX_SERPENT/scene.c b/JEUX_SERPENT/scene.c index 77d0780..588266a 100644 --- a/JEUX_SERPENT/scene.c +++ b/JEUX_SERPENT/scene.c @@ -1,8 +1,6 @@ #include #include #include -#include -#include #include "fonction.h" void Terrain(){ diff --git a/JEUX_SERPENT/score.c b/JEUX_SERPENT/score.c index bf84718..692de19 100644 --- a/JEUX_SERPENT/score.c +++ b/JEUX_SERPENT/score.c @@ -1,7 +1,6 @@ #include #include #include -#include #include "fonction.h" void Score(){ diff --git a/JEUX_SERPENT/serpent.c b/JEUX_SERPENT/serpent.c index eda18e6..28f0d3a 100644 --- a/JEUX_SERPENT/serpent.c +++ b/JEUX_SERPENT/serpent.c @@ -1,7 +1,6 @@ #include #include #include -#include #include "fonction.h" /*Input Serpent*/ @@ -29,6 +28,18 @@ void Controle(){ direction=2; break; } + case XK_Escape: + go_on=0; + go_menu=0; + + case XK_space: + if (pause==0){ + pause=1; + }else{ + pause=0; + ChoisirCouleurDessin(CouleurParComposante(255,255,255)); + EcrireTexte(500,750,"Jeu en Pause",2); + } } } } diff --git a/JEUX_SERPENT/timer.c b/JEUX_SERPENT/timer.c index 113c623..cb81b3a 100644 --- a/JEUX_SERPENT/timer.c +++ b/JEUX_SERPENT/timer.c @@ -1,7 +1,6 @@ #include #include #include -#include #include "fonction.h" #define CYCLE 100000L