{ ".post_delay_fixed", ARG_UNDEFINED, TYPE_INTEGER },
{ ".post_delay_random", ARG_UNDEFINED, TYPE_INTEGER },
{ ".name", ARG_UNDEFINED, TYPE_STRING },
+ { ".scale_up", ARG_UNDEFINED, TYPE_INTEGER },
{ NULL, NULL, 0 }
};
{ "background.SETUP", UNDEFINED_FILENAME },
{ "background.DOOR", UNDEFINED_FILENAME },
+ /* !!! TEMPORARILY STORED HERE -- PROBABLY TO BE CHANGED !!! */
+
+ { "emc_object", "emc_object.pcx" },
+ { "emc_score", "emc_score.pcx" },
+ { "emc_sprite", "emc_sprite.pcx" },
+ { "emc_title", "emc_title.pcx" },
+
/* the following directives are not associated with an image, but
probably make sense to be defined in "graphicsinfo.conf", too */
#define IMG_BACKGROUND_INFO_ELEMENTS 1399
#define IMG_BACKGROUND_SETUP 1400
#define IMG_BACKGROUND_DOOR 1401
+#define IMG_EMC_OBJECT 1402
+#define IMG_EMC_SCORE 1403
+#define IMG_EMC_SPRITE 1404
+#define IMG_EMC_TITLE 1405
-#define NUM_IMAGE_FILES 1402
+#define NUM_IMAGE_FILES 1406
#endif /* CONF_GFX_H */
-#define COMPILE_DATE_STRING "[2004-08-22 15:51]"
+#define COMPILE_DATE_STRING "[2004-08-22 20:30]"
#include <X11/Xatom.h>
#include <X11/keysym.h>
+#include "game_em.h"
+
#define ORIG_TILEX 16
#define ORIG_TILEY 16
#define ORIG_SCOREX 8
#else
-#include "../libgame/system.h"
-
#define xwindow (window->drawable)
#endif
#define GAME_EM_VERSION_1_0_0
+
+/* ========================================================================= */
+/* functions exported from main program to game_em */
+/* ========================================================================= */
+
+#include "../libgame/libgame.h"
+
+extern void DrawGameDoorValues_EM(int, int, int, int);
+
+
+/* ========================================================================= */
+/* functions exported from game_em to main program */
+/* ========================================================================= */
+
extern void em_open_all();
extern void em_close_all();
extern int em_main_init_game(int, char *);
extern int em_main_handle_game(byte);
+
#endif /* GAME_EM_H */
#ifndef GLOBAL_H
#define GLOBAL_H
-#include "../libgame/libgame.h"
+#include "game_em.h"
#define EM_GFX_DIR "graphics.EM"
#define EM_SND_DIR "sounds.EM"
#if defined(TARGET_X11)
-extern void DrawGameDoorValues_EM(int, int, int, int);
-
unsigned int frame; /* current frame */
unsigned int screen_x; /* current scroll position */
unsigned int screen_y;
#include <string.h>
#include <errno.h>
-#include "../libgame/platform.h"
-#include "../libgame/libgame.h"
+#include "game_em.h"
#include "global.h"
#include "display.h"
* handle sounds in emerald mine
*/
-#include "../libgame/platform.h"
+#include "game_em.h"
#if defined(TARGET_X11)
* directly in emerald mine source
*/
-#include "../libgame/platform.h"
+#include "game_em.h"
#if defined(TARGET_X11)
graphic_info[graphic].crumbled_like = -1; /* do not use clone element */
graphic_info[graphic].diggable_like = -1; /* do not use clone element */
graphic_info[graphic].border_size = TILEX / 8; /* "CRUMBLED" border size */
+ graphic_info[graphic].scale_up_factor = 0; /* default: no scaling up */
graphic_info[graphic].anim_delay_fixed = 0;
graphic_info[graphic].anim_delay_random = 0;
graphic_info[graphic].post_delay_fixed = 0;
if (parameter[GFX_ARG_BORDER_SIZE] != ARG_UNDEFINED_VALUE)
graphic_info[graphic].border_size = parameter[GFX_ARG_BORDER_SIZE];
+ /* optional zoom factor for scaling up the image to a larger size */
+ if (parameter[GFX_ARG_SCALE_UP] != ARG_UNDEFINED_VALUE)
+ graphic_info[graphic].scale_up_factor = parameter[GFX_ARG_SCALE_UP];
+
/* this is only used for player "boring" and "sleeping" actions */
if (parameter[GFX_ARG_ANIM_DELAY_FIXED] != ARG_UNDEFINED_VALUE)
graphic_info[graphic].anim_delay_fixed =
#define GFX_ARG_POST_DELAY_FIXED 28
#define GFX_ARG_POST_DELAY_RANDOM 29
#define GFX_ARG_NAME 30
+#define GFX_ARG_SCALE_UP 31
-#define NUM_GFX_ARGS 31
+#define NUM_GFX_ARGS 32
/* values for sound configuration suffixes */
int crumbled_like; /* element for cloning crumble graphics */
int diggable_like; /* element for cloning digging graphics */
int border_size; /* border size for "crumbled" graphics */
+ int scale_up_factor; /* optional factor for scaling image up */
int anim_delay_fixed; /* optional delay values for bored and */
int anim_delay_random; /* sleeping player animations (animation */