F1rush/include/voiture.h

37 lines
729 B
C
Raw Normal View History

2017-01-29 10:19:46 +01:00
#ifndef _VOITURE
#define _VOITURE
2017-01-29 15:45:06 +01:00
2017-01-31 20:26:51 +01:00
unsigned int key; // touche pressee
2017-01-29 15:45:06 +01:00
2017-01-31 20:26:51 +01:00
unsigned int compteur; // tourne a 15 Hz
unsigned int RTC_id;
2017-01-29 15:45:06 +01:00
2017-01-31 20:26:51 +01:00
char obstacles[100]; // permet d'avoir de l'aléatoire pondéré pour les obstacles/bonus
2017-01-29 15:45:06 +01:00
2017-01-29 10:19:46 +01:00
typedef struct Obstacles
2017-01-31 20:26:51 +01:00
{
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;
2017-01-29 15:45:06 +01:00
2017-01-29 10:19:46 +01:00
int Menu(void);
int Jeu(void);
void draw_lines(int decalx);
void init_obstacle(void);
void mort(int score, int type);
void garage(void);
2017-01-29 15:45:06 +01:00
#endif