37 lines
729 B
C
37 lines
729 B
C
#ifndef _VOITURE
|
|
#define _VOITURE
|
|
|
|
unsigned int key; // touche pressee
|
|
|
|
unsigned int compteur; // tourne a 15 Hz
|
|
unsigned int RTC_id;
|
|
|
|
|
|
char obstacles[100]; // permet d'avoir de l'aléatoire pondéré pour les obstacles/bonus
|
|
|
|
typedef struct Obstacles
|
|
{
|
|
char num_obst;
|
|
short coordx;
|
|
} Obstacles;
|
|
|
|
typedef struct Voiture
|
|
{
|
|
char corridor;
|
|
unsigned short money;
|
|
unsigned short essence;
|
|
unsigned int distance;
|
|
unsigned int life;
|
|
unsigned char speed;
|
|
unsigned char decal_x;
|
|
} Voiture;
|
|
|
|
int Menu(void);
|
|
int Jeu(void);
|
|
void draw_lines(int decalx);
|
|
void init_obstacle(void);
|
|
void mort(int score, int type);
|
|
void garage(void);
|
|
|
|
#endif
|