|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T c
Length: 1116 (0x45c) Types: TextFile Names: »consts.h«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/General/Lander/consts.h«
#define ALTITUDE_INIT 1500.0 /* initial altitude in metres */ #define LANDSCAPE_WIDTH 5000.0 /* initial screen width in metres */ #define PAD '=' /* landing pad char in template of screen */ #define CRASH 2 /* status of crash */ #define LANDED 1 /* status of potentially successful landing */ #define FLYING 0 /* status of flying lander */ #define GRAVITY 3.2 /* rate of descent in metres per second due to gravity */ #define ACCEPTABLE 5.0 /* acceptable landing velocity in metres per second */ #define SCR_Y 22 /* height of lunarscape in chars */ #define SCR_X 76 /* width of lunarscape in chars */ /* macro to determine of y and x are legal screen coordinates */ #define LEGAL_YX(y, x) ((y) < SCR_Y && (x) < SCR_X && (y) >= 0 && (x) >= 0) #define SCR_ADJ(y) (y + 1) /* difference between lunarscape y and screen y */ #define MAX_PADS 20 /* maximum number of landing pads in a lunarscape */