/* all global function prototypes */
-int open_all(void);
-void close_all(void);
-
void readjoy(byte, struct PLAYER *);
+void tab_generate(void);
+
void game_initscreen(void);
void game_init_random(void);
void game_init_cave_buffers(void);
#include "main_em.h"
-#include <signal.h>
-
Bitmap *screenBitmap;
struct GlobalInfo_EM global_em_info;
struct GameInfo_EM game_em;
-int open_all(void)
-{
- return 0;
-}
-
void InitGfxBuffers_EM(void)
{
ReCreateBitmap(&screenBitmap, MAX_BUF_XSIZE * TILEX, MAX_BUF_YSIZE * TILEY);
/* pre-calculate some data */
tab_generate();
- if (open_all() != 0)
- Error(ERR_EXIT, "em_open_all(): open_all() failed");
-
- /* after "open_all()", because we need the graphic bitmaps to be defined */
- tab_generate_graphics_info_em();
+ /* initialize graphics */
+ InitGraphicInfo_EM();
game_init_random();
game_init_cave_buffers();