SAE11_2023/SAE_semestre1/out/fruit.h

22 lines
579 B
C

#ifndef FRUIT_H
#define FRUIT_H
#include"serpent.h"
typedef struct {
int x;
int y;
int estMangee;
int sprite; /* Ajout d'un identifiant pour le sprite de la pomme */
} Pomme;
void InitialiserPommes(Pomme pommes[], int nombrePommes);
void GenererPommes(Pomme pommes[], int nombrePommes);
void AfficherPommes(Pomme pommes[], int nombrePommes);
void MangerPomme(Pomme pommes[], int nombrePommes, int x, int y);
void DessinerPomme(int x, int y, int sprite);
int ChargerSprite(char *file);
void AfficherSprite(int n, int x, int y);
void LibererSprite(int n);
#endif