Revision 643065313061 () - Diff

Link to this snippet: https://friendpaste.com/7RSkBGZYHt4MeUQgA1W4kc
Embed:
1
2
3
4
5
6
7
8
9
10
11
void demarreSdl(SDL_Surface **ecran, char titre[]);
void fermeSdl(SDL_Surface *serpent, SDL_Surface *boum);
void evenements(SDL_Surface *ecran, SDL_Surface *serpent, SDL_Surface *boum, SDL_Surface *tete[]);
void initialise(SDL_Surface *ecran, SDL_Surface **serpent, SDL_Surface **boum, SDL_Surface *tete[]);
void initialiseSerpent(SDL_Rect positionSerpent[], SDL_Surface *serpent, SDL_Surface *ecran, int taille);
void blitteSerpent(SDL_Surface *serpent, SDL_Surface *ecran, SDL_Rect positionSerpent[], int taille, int direction, SDL_Surface *tete[]);
void decalePositions(SDL_Rect positionSerpent[], int taille);
void avanceSerpent(SDL_Surface *serpent, SDL_Rect positionSerpent[], int direction);
int cogne(SDL_Rect positionSerpent[], SDL_Surface *ecran, int taille);
int surSerpent(SDL_Rect positionSerpent[], int taille);
void perdu(SDL_Surface *boum, SDL_Surface *ecran, SDL_Rect positionSerpent[]);