esprit-2013-1a2-high-octane: car.h Source File

esprit-2013-1a2-high-octane version one finale

- Main Page
- Classes
- Files

- File List
- File Members

All Classes Files Functions Variables
car.h
1 #ifndef CAR_H_INCLUDED
2 #define CAR_H_INCLUDED
3 #include <stdio.h>
4 #include <allegro.h>
5 #include <stdlib.h>
6
7
8
9 #define GFX_W 642
10 #define GFX_H 450
11
12
13 struct CAR {
14 int x;
15 int y;
16 BITMAP *car ;
17
18 };
19 typedef struct CAR CAR;
20
21 struct BACKG {
22 int backg_x ;
23 int backg_y ;
24 int backgc_x;
25 BITMAP *backgroundprincipale ;
26 BITMAP *backgroundCollision ;
27 };
28 typedef struct BACKG BACKG;
29
30
31 void moveup (BACKG *b, CAR *c, BITMAP *buffer, BITMAP * image);
32 void movedown (BACKG *b, CAR *c, BITMAP *buffer, BITMAP * image);
33 void moveright (BACKG *b, CAR *c, BITMAP *buffer, BITMAP * image);
34 void moveleft (BACKG *b, CAR *c, BITMAP *buffer, BITMAP * image);
35
36 #endif // CAR_H_INCLUDED
37