#ifndef __GLOBALS_H #define __GLOBALS_H /* global variables */ int musicplaying; levelentry_t levelentry[MAXLEVELS]; // level filenames etc int numlevels; SDL_Surface *levelbg; // level background image SDL_Surface *temps; // temporary surface SDL_Surface *screen; // the actual video screen SDL_Surface *head,*headsmall; // img in corner showing number of lives sprite_t *sprite; // head of sprite linked list sprite_t *lastsprite; // tail of sprite linked list sprite_t *player; // pointer to the player's sprite Mix_Music *music, *fastmusic, *normalmusic; Mix_Chunk *sfx[MAXFX]; text_t *text, *lasttext; level_t *curlevel; // the current level's data int levelcomplete; // has the levle been finished? int nexthurryup; // next hurryuptime for the level int cheat; tiletype_t fakeblock; // used for returning tiletypes from a function int oldexitdir; // exit direction of previous level int vidargs; // arguments for SetVideo call TTF_Font *font[MAXLETTERHEIGHT]; /* timers */ int gtime; // game time - time elapsed on current level int timer; // generic 1-100 timer for repeated events int toggletimer; // used for toggling between fullscreen mode char *deathtext[] = { "Ouch!", "Ow!", "Argh!", "Noooo!" }; char *bifftext[] = { "Biff!", "Pow!", "Wham!", "Splat!" }; /* colours */ SDL_Color red; SDL_Color black; SDL_Color blue; SDL_Color white; SDL_Color green; SDL_Color yellow; #endif