[Xmltools-development] xmltools2/xmltools/tests cars.c cars.h
Status: Beta
Brought to you by:
nik_89
|
From: nik_89 <ni...@us...> - 2004-11-14 00:44:41
|
Update of /cvsroot/xmltools/xmltools2/xmltools/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14754 Modified Files: cars.c cars.h Log Message: trackfiles.bmp : Very neat tiles made by Lee (he took them from bilbana but edited them to fit). Index: cars.h =================================================================== RCS file: /cvsroot/xmltools/xmltools2/xmltools/tests/cars.h,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** cars.h 11 Nov 2004 23:17:33 -0000 1.13 --- cars.h 14 Nov 2004 00:44:12 -0000 1.14 *************** *** 53,56 **** --- 53,68 ---- #define CARS_GFX_TOTALY 56 + /* the counter clockwise + * track turn starting angle offset + * default is 8 and is jerky + * 15 is jerky on top left and top right + */ + #define CARS_CCTURNSTART_OFFSET 15 + + /* the clockwise + * track turn starting angle offset + * default is 8 + */ + #define CARS_CTURNSTART_OFFSET 8 typedef struct Index: cars.c =================================================================== RCS file: /cvsroot/xmltools/xmltools2/xmltools/tests/cars.c,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** cars.c 12 Nov 2004 02:26:34 -0000 1.21 --- cars.c 14 Nov 2004 00:44:12 -0000 1.22 *************** *** 15,18 **** --- 15,19 ---- #define set_clockwise_offtrack 1 + static int cars_movetrack(int cnum); static void cars_turn_cc(int cnum, int from_angle, *************** *** 85,89 **** int to_angle, int extra_x, int extra_y, int extra_fix) { ! const int offset_angle_from = 8; int a = abs(car[cnum]->speed / CARS_SPEED_OFFSET); car[cnum]->xfix = CARS_GFX_FIX_X * -1; --- 86,90 ---- int to_angle, int extra_x, int extra_y, int extra_fix) { ! const int offset_angle_from = CARS_CCTURNSTART_OFFSET; int a = abs(car[cnum]->speed / CARS_SPEED_OFFSET); car[cnum]->xfix = CARS_GFX_FIX_X * -1; *************** *** 164,168 **** {0, 9} }; ! const int offset_angle_from = 8; int circle_size = 64; if (car[cnum]->lane) --- 165,169 ---- {0, 9} }; ! const int offset_angle_from = CARS_CTURNSTART_OFFSET; int circle_size = 64; if (car[cnum]->lane) *************** *** 665,666 **** --- 666,668 ---- } + |