]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_tdef.h
hmmm layers in map_t ....
[16.git] / src / lib / 16_tdef.h
index 52435a91393a90b0b8e30853d69a932d4f46be46..54ec8b9c3b3406fb64dd936e49344866ddca05ee 100755 (executable)
@@ -50,10 +50,10 @@ typedef struct {
 \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
@@ -66,9 +66,9 @@ typedef struct {
 \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
@@ -115,12 +115,12 @@ typedef struct{
        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