]> 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 54ec8b9c3b3406fb64dd936e49344866ddca05ee..d1220d54c67826e1af1020a116b95e934f10ab2a 100755 (executable)
@@ -64,18 +64,16 @@ typedef struct {
        byte *palette;\r
 } planar_buf_t;\r
 \r
+//===========================================================================//\r
+\r
 //TODO: 16_mm and 16_ca must handle this\r
 typedef struct {\r
-       bitmap_t far *pcximg;           //old\r
-       //planar_buf_t far *data;       //old\r
+       bitmap_t far *pcximg;           //I will probibaly use this --sparky4\r
+       //planar_buf_t far *pbdata;     //old\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
-//     byte *debug_data;\r
-//     #endif\r
-       byte    imgname[8];             //image file of tileset\r
-} tiles_t;\r
+       byte    imgname[8];             //image file of tileset (set to 8 because DOS ^^;)\r
+} tiles_t;     //seems to be the tileset properties\r
 \r
 //TODO: 16_mm and 16_ca must handle this\r
 //TODO: add variables from 16_ca\r
@@ -99,13 +97,15 @@ typedef struct {
        byte *data;                     //TODO: 16_mm and 16_ca must handle this\r
        tiles_t *tiles;         //TODO: 16_mm and 16_ca must handle this\r
 #else\r
-       byte * far *layerdata;\r
-       tiles_t far *layertile[MAPLAYERS];\r
+       byte far *layerdata[MAPLAYERS]; // mapdata for multilayer (map index values for rendering which image on the tile)\r
+       tiles_t far *layertile[MAPLAYERS];      // tilesets for layers (currently ony 4 can be loaded wwww)\r
 #endif\r
        int width, height;              //this has to be signed!\r
        byte name[16];\r
 } map_t;\r
 \r
+//===================================//\r
+\r
 typedef struct{\r
        word tw;                /* screen width in tiles */\r
        word th;                /* screen height in tiles */\r