4 /* ========================================================================= */
5 /* external functions and definitions imported from main program to game_sp */
6 /* ========================================================================= */
8 #include "../engines.h"
11 /* ========================================================================= */
12 /* functions and definitions that are exported from game_sp to main program */
13 /* ========================================================================= */
18 /* ========================================================================= */
19 /* internal functions and definitions that are not exported to main program */
20 /* ========================================================================= */
23 /* ------------------------------------------------------------------------- */
24 /* constant definitions */
25 /* ------------------------------------------------------------------------- */
27 /* screen sizes and positions for SP engine */
34 #define TILEX (ORIG_TILEX * ZOOM_FACTOR)
35 #define TILEY (ORIG_TILEY * ZOOM_FACTOR)
37 #define ORIG_SCR_MENUX 20
38 #define ORIG_SCR_MENUY 12
43 #define MAX_BUF_XSIZE (2 + SCR_FIELDX + 2)
44 #define MAX_BUF_YSIZE (2 + SCR_FIELDY + 2)
46 /* often used screen positions */
49 #define SXSIZE (SCR_FIELDX * TILEX)
50 #define SYSIZE (SCR_FIELDY * TILEY)
52 #define REAL_SX (SX - 2)
53 #define REAL_SY (SY - 2)
54 #define FULL_SXSIZE (2 + SXSIZE + 2)
55 #define FULL_SYSIZE (2 + SYSIZE + 2)
58 /* ------------------------------------------------------------------------- */
59 /* data structure definitions */
60 /* ------------------------------------------------------------------------- */
62 /* ------------------------------------------------------------------------- */
63 /* exported variables */
64 /* ------------------------------------------------------------------------- */
66 extern struct LevelInfo_SP native_sp_level;
68 extern Bitmap *screenBitmap;
70 extern Bitmap *sp_objects;
73 /* ------------------------------------------------------------------------- */
74 /* exported functions */
75 /* ------------------------------------------------------------------------- */
77 #endif /* MAIN_SP_H */