ajout commentaire + organisation du code + réglage menu pause

This commit is contained in:
2023-12-24 18:42:04 +01:00
parent b9e58985ea
commit 95411d5a1f
7 changed files with 39 additions and 44 deletions

View File

@@ -79,7 +79,6 @@ void Collision_Serpent(int pos_x[], int pos_y[], int segment, int murx[], int mu
void Controle(int *direction, int last_direction, int *go_on, int *pause) {
int t;
int Pause = ChargerSprite("img/PAUSE.png");
while(ToucheEnAttente()) {
t = Touche();
switch(t) {
@@ -109,7 +108,7 @@ void Controle(int *direction, int last_direction, int *go_on, int *pause) {
return;
case XK_space :
*pause = 1;
AfficherSprite(Pause, 400, 720);
ChargerImage("img/PAUSE.png", 400,720,0,0,400,150);
while(*pause){
t = Touche();
if (t == XK_space){