4 /* ========================================================================= */
5 /* external functions and definitions imported from main program to game_sp */
6 /* ========================================================================= */
8 #include "../engines.h"
9 #include "../conf_gfx.h"
12 /* ========================================================================= */
13 /* functions and definitions that are exported from game_sp to main program */
14 /* ========================================================================= */
19 /* ========================================================================= */
20 /* internal functions and definitions that are not exported to main program */
21 /* ========================================================================= */
24 /* ------------------------------------------------------------------------- */
25 /* constant definitions */
26 /* ------------------------------------------------------------------------- */
28 /* screen sizes and positions for SP engine */
35 #define TILEX (ORIG_TILEX * ZOOM_FACTOR)
36 #define TILEY (ORIG_TILEY * ZOOM_FACTOR)
38 #define ORIG_SCR_MENUX 20
39 #define ORIG_SCR_MENUY 12
44 #define MAX_BUF_XSIZE (2 + SCR_FIELDX + 2)
45 #define MAX_BUF_YSIZE (2 + SCR_FIELDY + 2)
47 /* often used screen positions */
50 #define SXSIZE (SCR_FIELDX * TILEX)
51 #define SYSIZE (SCR_FIELDY * TILEY)
53 #define REAL_SX (SX - 2)
54 #define REAL_SY (SY - 2)
55 #define FULL_SXSIZE (2 + SXSIZE + 2)
56 #define FULL_SYSIZE (2 + SYSIZE + 2)
59 /* ------------------------------------------------------------------------- */
60 /* data structure definitions */
61 /* ------------------------------------------------------------------------- */
63 /* ------------------------------------------------------------------------- */
64 /* exported variables */
65 /* ------------------------------------------------------------------------- */
67 extern struct LevelInfo_SP native_sp_level;
69 extern Bitmap *screenBitmap;
71 extern Bitmap *sp_objects;
73 extern int GfxElementLast[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT];
74 extern int GfxGraphicLast[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT];
75 extern int GfxGraphic[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT];
76 extern int GfxFrame[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT];
79 /* ------------------------------------------------------------------------- */
80 /* exported functions */
81 /* ------------------------------------------------------------------------- */
83 #endif /* MAIN_SP_H */