Ajout de defaite quand serpent sort de la zone
This commit is contained in:
parent
b205833c66
commit
dd9d51bb1a
@ -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
BIN
evenement.o
Normal file
Binary file not shown.
BIN
main.o
Normal file
BIN
main.o
Normal file
Binary file not shown.
BIN
prog
Executable file
BIN
prog
Executable file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user