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 */
30 #define ORIG_TILESIZE 16
34 #define TILESIZE (ORIG_TILESIZE * ZOOM_FACTOR)
35 #define TILEX TILESIZE
36 #define TILEY TILESIZE
38 #define ORIG_SCR_MENUX 20
39 #define ORIG_SCR_MENUY 12
43 extern int SCR_FIELDX, SCR_FIELDY;
48 #define MAX_BUF_XSIZE (2 + SCR_FIELDX + 2)
49 #define MAX_BUF_YSIZE (2 + SCR_FIELDY + 2)
51 /* often used screen positions */
58 #define SXSIZE (SCR_FIELDX * TILEX)
59 #define SYSIZE (SCR_FIELDY * TILEY)
60 #define FXSIZE (MAX_BUF_XSIZE * TILEX)
61 #define FYSIZE (MAX_BUF_YSIZE * TILEY)
64 extern int REAL_SX, REAL_SY;
66 #define REAL_SX (SX - 2)
67 #define REAL_SY (SY - 2)
69 #define FULL_SXSIZE (2 + SXSIZE + 2)
70 #define FULL_SYSIZE (2 + SYSIZE + 2)
73 /* ------------------------------------------------------------------------- */
74 /* data structure definitions */
75 /* ------------------------------------------------------------------------- */
77 /* ------------------------------------------------------------------------- */
78 /* exported variables */
79 /* ------------------------------------------------------------------------- */
81 extern struct LevelInfo_SP native_sp_level;
83 extern Bitmap *bitmap_db_field_sp;
85 extern int GfxElementLast[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT];
86 extern int GfxGraphicLast[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT];
87 extern int GfxGraphic[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT];
88 extern int GfxFrame[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT];
91 /* ------------------------------------------------------------------------- */
92 /* exported functions */
93 /* ------------------------------------------------------------------------- */
95 #endif /* MAIN_SP_H */