6 #define EM_GFX_DIR "graphics.EM"
7 #define EM_SND_DIR "sounds.EM"
8 #define EM_LVL_DIR "levels.EM"
10 /* arbitrary maximum length of filenames (cos i am lazy) */
14 extern char *progname;
15 extern char *arg_basedir;
18 extern int TILEX, TILEY;
23 extern short ulaw_to_linear[256];
24 extern unsigned char linear_to_ulaw[65536];
26 /* all global function prototypes */
32 void readjoy(byte, struct PLAYER *);
36 void input_eventloop(void);
38 void blitscreen(void);
39 void game_initscreen(void);
40 void game_animscreen(void);
42 void DrawGameDoorValues_EM();
44 void play_sound(int, int, int);
45 void sound_play(void);
47 int cave_convert(char *);
49 void game_init_vars(void);
50 void game_play_init(int, char *);
57 int cleanup_em_level(unsigned char *, int, char *);
58 void convert_em_level(unsigned char *, int);
59 void prepare_em_level(void);
61 int sound_thread(void);
62 int read_sample(char *, short **, int *);
64 void read_cave_list(void);
65 void free_cave_list(void);