Lines 41-50
Link Here
|
41 |
#define HALF_WORLD_LENGTH (WORLD_LENGTH >> 1) |
41 |
#define HALF_WORLD_LENGTH (WORLD_LENGTH >> 1) |
42 |
#define HALF_WORLD_WIDTH (WORLD_WIDTH >> 1) |
42 |
#define HALF_WORLD_WIDTH (WORLD_WIDTH >> 1) |
43 |
#define PIXELS_PER_FOOT 6 /* Number of pixels per foot */ |
43 |
#define PIXELS_PER_FOOT 6 /* Number of pixels per foot */ |
44 |
#define TICKS_PER_SECOND 3 /* Number of frames per second */ |
44 |
#define TICKS_PER_SECOND 30 /* Number of frames per second */ |
45 |
#define ACCELERATION -5.310 /* Acceleration of gravity (ft/sec^2) */ |
45 |
#define ACCELERATION -5.310 /* Acceleration of gravity (ft/sec^2) */ |
46 |
#define RETRO 35.0 /* Acceleration due to retroactive thruster */ |
46 |
#define RETRO 35.0 /* Acceleration due to retroactive thruster */ |
47 |
#define LATERAL_THRUST 5.0 /* Acceleration due to lateral thruster */ |
47 |
#define LATERAL_THRUST 1.0 /* Acceleration due to lateral thruster */ |
48 |
#ifndef PI |
48 |
#ifndef PI |
49 |
#define PI 3.1415926535897932384 |
49 |
#define PI 3.1415926535897932384 |
50 |
#endif |
50 |
#endif |
Lines 53-61
Link Here
|
53 |
#define TWOPI 6.2831853 |
53 |
#define TWOPI 6.2831853 |
54 |
#define VERT_SPEED 30.0 /* Maximum vertical speed without crashing */ |
54 |
#define VERT_SPEED 30.0 /* Maximum vertical speed without crashing */ |
55 |
#define LAT_SPEED 30.0 /* Maximum lateral speed without crashing */ |
55 |
#define LAT_SPEED 30.0 /* Maximum lateral speed without crashing */ |
56 |
#define RETRO_BURN 1.6 /* Retroactive thruster fuel consumption */ |
56 |
#define RETRO_BURN 0.16 /* Retroactive thruster fuel consumption */ |
57 |
#define LATERAL_BURN 0.4 /* Lateral thruster fuel consumption */ |
57 |
#define LATERAL_BURN 0.04 /* Lateral thruster fuel consumption */ |
58 |
#define FULL_TANK 320 /* Full tank of fuel */ |
58 |
#define FULL_TANK 320 /* Full tank of fuel */ |
59 |
#define MAX_VELOC 640.0 /* Maximum velocity */ |
59 |
#define MAX_VELOC 640.0 /* Maximum velocity */ |
60 |
|
60 |
|
61 |
#define LANDER_WIDTH 600 |
61 |
#define LANDER_WIDTH 600 |
Lines 109-121
Link Here
|
109 |
|
109 |
|
110 |
DATABASE *DBInit (), *DBInitFromData (), *LoadDataBase (); |
110 |
DATABASE *DBInit (), *DBInitFromData (), *LoadDataBase (); |
111 |
void DBInsert (), DBFinish (), DBPlot (), SwapBuffers (), exit (); |
111 |
void DBInsert (), DBFinish (), DBPlot (), SwapBuffers (), exit (); |
|
|
112 |
|
113 |
/* |
112 |
#ifndef _AIX |
114 |
#ifndef _AIX |
113 |
char *malloc (); |
115 |
char *malloc (); |
114 |
#endif |
116 |
#endif |
115 |
double atof (); |
117 |
double atof (); |
116 |
#ifdef sun |
118 |
#ifdef sun |
117 |
int printf (), fprintf (), time (); |
119 |
int printf (), fprintf (), time (); |
118 |
#endif |
120 |
#endif |
|
|
121 |
*/ |
119 |
|
122 |
|
120 |
/* |
123 |
/* |
121 |
* Transform x,y coordinate pairs from world space to position on |
124 |
* Transform x,y coordinate pairs from world space to position on |