]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_tdef.h
BROKE build of 0.exe
[16.git] / src / lib / 16_tdef.h
index 09e86c746bbf640d8e815b8dd77165dea3b7080c..3b12d128fd3b09468758998524f0e652ad3d1e0b 100755 (executable)
@@ -89,11 +89,23 @@ typedef struct {
        char            name[16];\r
 } map_t;\r
 \r
+// tile info\r
+typedef struct{\r
+       word tw;                /* screen width in tiles */\r
+       word th;                /* screen height in tiles */\r
+       word tilesw;            /* virtual screen width in tiles */\r
+       word tilesh;            /* virtual screen height in tiles */\r
+       sword tilemidposscreenx;        /* middle tile x position */    /* needed for scroll system to work accordingly */\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
+} ti_t;\r
+\r
 typedef struct {\r
-       /*nibble*/word id;      /* the Identification number of the page~ For layering~ */\r
+       nibble/*word*/ id;      /* the Identification number of the page~ For layering~ */\r
        byte far* data; /* the data for the page */\r
-       word dx;                /* col we are viewing on the virtual screen */  /* off screen buffer on the left size */\r
-       word dy;                /* row we are viewing on the virtual screen */  /* off screen buffer on the top size */\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
        word sh;                /* screen heigth */     /* resolution */\r
        word tw;                /* screen width in tiles */\r