X-Git-Url: http://royale.zerezo.com/git/?p=zeRace;a=blobdiff_plain;f=car.h;fp=car.h;h=cb9e511245e1807f27ba8eda6dcc5c8227ff92b3;hp=0000000000000000000000000000000000000000;hb=dde2df6289f6daf23ee1632560c4c89061ef2f4a;hpb=866e35b81c26169886388f7c93dce52f2a42809f diff --git a/car.h b/car.h new file mode 100644 index 0000000..cb9e511 --- /dev/null +++ b/car.h @@ -0,0 +1,18 @@ +/* manages car object and its movement */ + +#include +#include "sdl.h" + +#ifndef M_PI +#define M_PI 3.141592654 +#endif + +struct _car +{ + float x,y,ox,oy,angle,speed; + int w,h,lastcheck,lap; + int lapflag,crashflag; + int color; +}; + +void move_car(struct _car *car,int keys,SDL_Surface *function);