9 // Bang dots have the same colour as shield dots.
10 // Bang dots get darker as they age.
11 // Some are coloured the same as the ex-ship.
13 Uint16 c; // when zero, use heatcolor[bangdotlife]
14 float life; // When reduced to 0, set active = 0
16 float decay;// Amount by which to reduce life each time dot is drawn
19 // Engine dots stream out the back of the ship, getting darker as they go.
22 // The life of an engine dot
23 // is a number starting at between 0 and 50 and counting backward.
24 float life; // When reduced to 0, set active = 0
27 // Space dots are harmless background items
28 // All are active. When one falls off the edge, another is created at the start.
33 // ************************************* VARS
34 // SDL_Surface global variables
36 *surf_screen, // Screen
37 *surf_b_variations, // "variations" banner
38 *surf_b_on, // "on" banner
39 *surf_b_rockdodger, // "rockdodger" banner
40 *surf_b_game, // Title element "game"
41 *surf_b_over, // Title element "over"
42 *surf_ship, // Spaceship element
43 *surf_life, // Indicator of number of ships remaining
44 *surf_rock[NROCKS], // THE ROCKS
45 *surf_font_big; // The big font
47 extern SFont_Font *g_font;
51 // Structure global variables
52 extern struct enginedots edot[MAXENGINEDOTS], *dotptr;
53 extern struct bangdots bdot[MAXBANGDOTS], *bdotptr;
54 extern struct spacedot sdot[MAXSPACEDOTS];
56 // command-line arguments
57 extern int opt_fullscreen;
60 extern float opt_gamespeed;
61 extern int opt_tail_engine;
62 extern int opt_friction;
64 // Other global variables
65 extern char topline[1024];
66 extern char *initerror;
68 extern struct shape shipshape;
69 extern float shipx,shipy; // X position, 0..XSIZE
70 extern float shipdx,shipdy; // Change in X position per tick.
71 extern float screendx, screendy;
72 extern float xscroll, yscroll;
73 extern float gamerate; // this controls the speed of everything that moves.
75 extern float scrollvel;
77 extern int nships,score,initticks,ticks_since_last, last_ticks;
80 extern float fadetimer, faderate;
82 extern int pausedown, paused;
84 // bangdot start (bd1) and end (bd2) position:
87 extern int bangdotlife, nbangdots;
88 extern Uint16 heatcolor[W*3];
90 extern char *data_dir;
92 #endif // VOR_GLOBALS_H