projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20100417-1-src
[rocksndiamonds.git]
/
src
/
game_sp
/
main_sp.h
diff --git
a/src/game_sp/main_sp.h
b/src/game_sp/main_sp.h
index 8aa3f7fc705ffa018db01a24c2e4f81b894bdb66..6e61508b44bdc93487cb51a5eb817d7d57c2c013 100644
(file)
--- a/
src/game_sp/main_sp.h
+++ b/
src/game_sp/main_sp.h
@@
-27,31
+27,45
@@
/* screen sizes and positions for SP engine */
/* screen sizes and positions for SP engine */
-#define ORIG_TILEX 16
-#define ORIG_TILEY 16
+#define ORIG_TILESIZE 16
#define ZOOM_FACTOR 2
#define ZOOM_FACTOR 2
-#define TILEX (ORIG_TILEX * ZOOM_FACTOR)
-#define TILEY (ORIG_TILEY * ZOOM_FACTOR)
+#define TILESIZE (ORIG_TILESIZE * ZOOM_FACTOR)
+#define TILEX TILESIZE
+#define TILEY TILESIZE
#define ORIG_SCR_MENUX 20
#define ORIG_SCR_MENUY 12
#define SCR_MENUX 17
#define SCR_MENUY 12
#define ORIG_SCR_MENUX 20
#define ORIG_SCR_MENUY 12
#define SCR_MENUX 17
#define SCR_MENUY 12
+#if 1
+extern int SCR_FIELDX, SCR_FIELDY;
+#else
#define SCR_FIELDX 17
#define SCR_FIELDY 17
#define SCR_FIELDX 17
#define SCR_FIELDY 17
+#endif
#define MAX_BUF_XSIZE (2 + SCR_FIELDX + 2)
#define MAX_BUF_YSIZE (2 + SCR_FIELDY + 2)
/* often used screen positions */
#define MAX_BUF_XSIZE (2 + SCR_FIELDX + 2)
#define MAX_BUF_YSIZE (2 + SCR_FIELDY + 2)
/* often used screen positions */
+#if 1
+extern int SX, SY;
+#else
#define SX 8
#define SY 8
#define SX 8
#define SY 8
+#endif
#define SXSIZE (SCR_FIELDX * TILEX)
#define SYSIZE (SCR_FIELDY * TILEY)
#define SXSIZE (SCR_FIELDX * TILEX)
#define SYSIZE (SCR_FIELDY * TILEY)
+#define FXSIZE (MAX_BUF_XSIZE * TILEX)
+#define FYSIZE (MAX_BUF_YSIZE * TILEY)
+#if 1
+extern int REAL_SX, REAL_SY;
+#else
#define REAL_SX (SX - 2)
#define REAL_SY (SY - 2)
#define REAL_SX (SX - 2)
#define REAL_SY (SY - 2)
+#endif
#define FULL_SXSIZE (2 + SXSIZE + 2)
#define FULL_SYSIZE (2 + SYSIZE + 2)
#define FULL_SXSIZE (2 + SXSIZE + 2)
#define FULL_SYSIZE (2 + SYSIZE + 2)
@@
-66,10
+80,11
@@
extern struct LevelInfo_SP native_sp_level;
extern struct LevelInfo_SP native_sp_level;
-extern Bitmap *screenBitmap;
-
-extern Bitmap *sp_objects;
+extern Bitmap *bitmap_db_field_sp;
+extern int GfxElementLast[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT];
+extern int GfxGraphicLast[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT];
+extern int GfxGraphic[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT];
extern int GfxFrame[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT];
extern int GfxFrame[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT];