45 #define LEFT_INCLINE 0
47 #define STRAIGHT_DOWN 2
48 #define RIGHT_DECLINE 3
58 #define STARTING_FUEL 900
59 #define CHANCE_OF_LANDING_PAD 3
62 #define TERMINAL_VELOCITY 0.9f
68 unsigned int endType = NONE;
71 bool invincible =
false;
75 chtype li, su, sd, rd, pl;
99 float xMomentum, yMomentum;
126 void moveShip(
SHIP* ship,
size_t lASize,
unsigned int landscapeArray[],
127 size_t sASize,
unsigned int safeArray[]);
void createShip(SHIP *ship)
Definition: moonlander.c:295
bool createLandscape(LANDSCAPE *landscape, unsigned int landscapeArray[], unsigned int safeArray[])
Definition: moonlander.c:318
Definition: moonlander.h:92
void applyJet(SHIP *ship, unsigned int dir)
Definition: moonlander.c:443
void moveShip(SHIP *ship, size_t lASize, unsigned int landscapeArray[], size_t sASize, unsigned int safeArray[])
Definition: moonlander.c:507
void displayIntro()
Definition: moonlander.c:602
double getScore(SHIP *ship, unsigned int time)
Definition: moonlander.c:642
void initialiseLandscape(LANDSCAPE *landscape)
Definition: moonlander.c:274
void applyFriction(SHIP *ship)
Definition: moonlander.c:482
Definition: moonlander.h:106
void initialiseShip(SHIP *ship)
Definition: moonlander.c:248
Definition: moonlander.h:87
void applyGravity(SHIP *ship)
Definition: moonlander.c:473
Definition: moonlander.h:74
void initialisencurses()
Definition: moonlander.c:226
Definition: moonlander.h:79