Ajout de defaite quand serpent sort de la zone

This commit is contained in:
David AKAGUNDUZ 2023-12-17 16:53:43 +01:00
parent b205833c66
commit dd9d51bb1a
4 changed files with 4 additions and 0 deletions

@ -50,6 +50,10 @@ void MourrirSerpent(PIXELS *serpent, int longueur_serpent)
FermerGraphique();
}
}
if (serpent[0].x<=0 || serpent[0].x>W_GAME || serpent[0].y<=0 || serpent[0].y>H_GAME)
{
FermerGraphique();
}
}
int MangerPastille(PIXELS *serpent, PIXELS* pastilles,unsigned long *score,int longueur_serpent)

BIN
evenement.o Normal file

Binary file not shown.

BIN
main.o Normal file

Binary file not shown.

BIN
prog Executable file

Binary file not shown.