]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_tdef.h
reverted input and stuff back... walk() is broken badly
[16.git] / src / lib / 16_tdef.h
index f535c75d35b9b9a901a4ddeb2f7d65d9c4f76480..2ea3f9fe9e39d96d60a1a07de16b70e2923d253d 100755 (executable)
@@ -64,12 +64,11 @@ typedef struct {
        byte *palette;\r
 } planar_buf_t;\r
 \r
-\r
-enum direction {STOP, UP, DOWN, LEFT, RIGHT};\r
 typedef struct {\r
-       int dx, dy; //backwards compait\r
-       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 */\r
+       word dy;                /* row we are viewing on the virtual screen */\r
        word sw;                /* screen width */\r
        word sh;                /* screen heigth */\r
        word tw;                /* screen width in tiles */\r
@@ -85,8 +84,8 @@ typedef struct {
        word stridew;                   /*width/4*/\r
        word pagesize;                  /* page size */\r
        word pi;                                /* incremention page by this much to preserve location */\r
-       word delta;                     // How much should we shift the page for smooth scrolling\r
-       enum direction d;                       // Direction we should shift the page\r
+       sword delta;                    // How much should we shift the page for smooth scrolling\r
+       //enum direction d;                     // Direction we should shift the page\r
 } page_t;\r
 typedef struct\r
 {\r