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 // Other global variables
57 extern char topline[1024];
58 extern char *initerror;
60 extern struct shape shipshape;
61 extern float shipx,shipy; // X position, 0..XSIZE
62 extern float shipdx,shipdy; // Change in X position per tick.
63 extern float screendx, screendy;
64 extern float xscroll, yscroll;
66 extern float scrollvel;
68 // all movement is based on s_frame.
69 extern float t_frame; // length of this frame (in ticks = 1/20th second)
70 extern float s_frame; // length of this frame (seconds)
71 extern int ms_frame; // length of this frame (milliseconds)
72 extern int ms_end; // end of this frame (milliseconds)
74 extern int nships,score;
77 extern float fadetimer, faderate;
79 extern int pausedown, paused;
81 // bangdot start (bd1) and end (bd2) position:
84 extern int bangdotlife, nbangdots;
85 extern Uint16 heatcolor[W*3];
87 extern char *data_dir;
89 #endif // VOR_GLOBALS_H