diff --git a/liste.h b/liste.h new file mode 100644 index 0000000..3c5349c --- /dev/null +++ b/liste.h @@ -0,0 +1,20 @@ +#include +#include +#define TAILLE_X 700 + + +typedef struct entite +{int image;int x;int y;int speed;}entite; + + +typedef struct l_entite +{entite ent;struct l_entite* next;}l_entite; + +l_entite* create_l_entite (int x,int y,int speed,int image); +entite create_entite (entite ent,int x,int y, int speed, int image); +void add_entite (l_entite** head,int x,int y,int speed,int image); +void display_l_entite (l_entite* mons); +void display_entite (entite ent); +void moveMissile (l_entite* msl); +void addMissile (l_entite** head, entite vaisseau,int image); +void detecterCollisions(l_entite* l_missile, l_entite* l_monstre); -- libgit2 0.21.2