version 0.4
[zeRace] / car.h
1 /* manages car object and its movement */
2
3 #include <math.h>
4 #include "sdl.h"
5
6 #ifndef M_PI
7 #define M_PI 3.141592654
8 #endif
9
10 struct _car
11 {
12   float x,y,ox,oy,angle,speed;
13   int w,h,lastcheck,lap;
14   int lapflag,crashflag;
15   int color;
16 };
17
18 void move_car(struct _car *car,int keys,SDL_Surface *function);