\r
typedef struct {\r
byte far **data;\r
- word ntiles; /* the number of tiles */\r
- word twidth; /* width of the tiles */\r
- word theight; /* height of the tiles */\r
- byte *palette; /* palette for the tile set */\r
+ word ntiles; // the number of tiles\r
+ word twidth; // width of the tiles\r
+ word theight; // height of the tiles\r
+ byte *palette; // palette for the tile set\r
} tileset_t;\r
\r
typedef struct {\r
\r
//TODO: 16_mm and 16_ca must handle this\r
typedef struct {\r
- bitmap_t far *data; //old\r
+ bitmap_t far *pcximg; //old\r
//planar_buf_t far *data; //old\r
- word tileHeight, tileWidth;\r
+ word tileHeight, tileWidth; //defined by mapfile\r
unsigned int rows, cols;\r
// #ifdef __DEBUG__\r
// boolean debug_text; //show the value of the tile! wwww\r
sword tilemidposscreeny; /* middle tile y position */ /* needed for scroll system to work accordingly */\r
sword tileplayerposscreenx; /* player position on screen */ /* needed for scroll and map system to work accordingly */\r
sword tileplayerposscreeny; /* player position on screen */ /* needed for scroll and map system to work accordingly */\r
-} tileinfo_t;\r
+} pagetileinfo_t;\r
\r
typedef struct {\r
nibble/*word*/ id; /* the Identification number of the page~ For layering~ */\r
byte far* data; /* the data for the page */\r
- tileinfo_t ti;\r
+ pagetileinfo_t ti;\r
word dx; /* col we are viewing on virtual screen (on page[0]) */ /* off screen buffer on the left size */\r
word dy; /* row we are viewing on virtual screen (on page[0]) */ /* off screen buffer on the top size */\r
word sw; /* screen width */ /* resolution */\r
}\r
else\r
{\r
- rx = (((i-1) % ((t->data->width)/t->tileWidth)) * t->tileWidth);\r
- ry = (((i-1) / ((t->data->height)/t->tileHeight)) * t->tileHeight);\r
+ rx = (((i-1) % ((t->pcximg->width)/t->tileWidth)) * t->tileWidth);\r
+ ry = (((i-1) / ((t->pcximg->height)/t->tileHeight)) * t->tileHeight);\r
////0000printf("i=%d\n", i);\r
#ifdef __DEBUG_MAP__\r
switch(dbg_maptext)\r
map.tiles->data->offset=(paloffset/3);\r
modexPalUpdate(map.tiles->data, &paloffset, 0, 0);*/\r
VL_LoadPalFile(bakapee1p, &gvar.video.palette);\r
- VL_LoadPalFile("data/default.pal", &gvar.video.palette);\r
+ //VL_LoadPalFile("data/default.pal", &gvar.video.palette);\r
\r
#ifdef FADE\r
gpal = modexNewPal();\r
gvar.video.page[0].tlx=mv[0].tx*TILEWH;\r
gvar.video.page[0].tly=mv[0].ty*TILEWH;\r
shinku(&gvar);\r
+ modexpdump(mv[0].page);\r
#ifdef FADE\r
modexFadeOn(4, gpal);\r
#endif\r