#ifndef CAR_H_INCLUDED
#define CAR_H_INCLUDED
#include <stdio.h>
#include <allegro.h>
#include <stdlib.h>



#define GFX_W 642
#define GFX_H 450


struct CAR {
int x;
int y;
BITMAP *car ;

};
typedef struct CAR CAR;

struct BACKG {
int backg_x ;
int backg_y ;
int backgc_x;
BITMAP *backgroundprincipale ;
BITMAP *backgroundCollision ;
};
typedef struct BACKG BACKG;


void moveup (BACKG *b, CAR *c, BITMAP *buffer, BITMAP * image);
void movedown (BACKG *b, CAR *c, BITMAP *buffer, BITMAP * image);
void moveright (BACKG *b, CAR *c, BITMAP *buffer, BITMAP * image);
void moveleft (BACKG *b, CAR *c, BITMAP *buffer, BITMAP * image);

#endif // CAR_H_INCLUDED

