--- xlander/Makefile 1969-12-31 16:00:00.000000000 -0800 +++ xlander/Makefile 2006-07-11 23:19:30.000000000 -0700 @@ -0,0 +1,28 @@ +#CC = gcc -Wall +CC = cc +#CFLAGS = -O +#INCLUDES = -I/usr/local/include +#LDFLAGS = -s -L/usr/local/lib +LIBS = -lm -lX11 +TARGET = xlander +SRCS = xlander.c globals.c initialize.c functions.c instrument.c game.c \ + resource.c +OBJS = xlander.o globals.o initialize.o functions.o instrument.o game.o \ + resource.o +ALL = README Imakefile Makefile.std xlander.man $(SRCS) xlander.h globals.h \ + patchlevel.h + +all: $(TARGET) + +$(TARGET): $(OBJS) + $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) + +.c.o: + $(CC) $(CFLAGS) $(INCLUDES) -c $*.c + +clean: + rm -f $(OBJS) $(TARGET) core + +shar: $(ALL) + shar -o $(TARGET).shar $(ALL) + --- xlander/xlander.h 1992-07-26 03:20:44.000000000 -0700 +++ xlander/xlander.h 2006-07-11 23:12:34.000000000 -0700 @@ -41,10 +41,10 @@ #define HALF_WORLD_LENGTH (WORLD_LENGTH >> 1) #define HALF_WORLD_WIDTH (WORLD_WIDTH >> 1) #define PIXELS_PER_FOOT 6 /* Number of pixels per foot */ -#define TICKS_PER_SECOND 3 /* Number of frames per second */ +#define TICKS_PER_SECOND 30 /* Number of frames per second */ #define ACCELERATION -5.310 /* Acceleration of gravity (ft/sec^2) */ #define RETRO 35.0 /* Acceleration due to retroactive thruster */ -#define LATERAL_THRUST 5.0 /* Acceleration due to lateral thruster */ +#define LATERAL_THRUST 1.0 /* Acceleration due to lateral thruster */ #ifndef PI #define PI 3.1415926535897932384 #endif @@ -53,9 +53,9 @@ #define TWOPI 6.2831853 #define VERT_SPEED 30.0 /* Maximum vertical speed without crashing */ #define LAT_SPEED 30.0 /* Maximum lateral speed without crashing */ -#define RETRO_BURN 1.6 /* Retroactive thruster fuel consumption */ -#define LATERAL_BURN 0.4 /* Lateral thruster fuel consumption */ -#define FULL_TANK 320 /* Full tank of fuel */ +#define RETRO_BURN 0.16 /* Retroactive thruster fuel consumption */ +#define LATERAL_BURN 0.04 /* Lateral thruster fuel consumption */ +#define FULL_TANK 320 /* Full tank of fuel */ #define MAX_VELOC 640.0 /* Maximum velocity */ #define LANDER_WIDTH 600 @@ -109,13 +109,16 @@ DATABASE *DBInit (), *DBInitFromData (), *LoadDataBase (); void DBInsert (), DBFinish (), DBPlot (), SwapBuffers (), exit (); + +/* #ifndef _AIX char *malloc (); #endif double atof (); -#ifdef sun +#ifdef sun int printf (), fprintf (), time (); #endif +*/ /* * Transform x,y coordinate pairs from world space to position on