DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T c

⟦d3218b0ec⟧ TextFile

    Length: 1116 (0x45c)
    Types: TextFile
    Names: »consts.h«

Derivation

└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
    └─⟦this⟧ »EUUGD18/General/Lander/consts.h« 

TextFile

#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 */