version 0.3
[zeRace] / car.h
diff --git a/car.h b/car.h
new file mode 100644 (file)
index 0000000..cb9e511
--- /dev/null
+++ b/car.h
@@ -0,0 +1,18 @@
+/* manages car object and its movement */
+
+#include <math.h>
+#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);