X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ftypdefst.h;h=da79ebc8b63b74a0416b8fa298633b64b907bbf1;hb=9e4ec19da5e1df6d0f18978ceb567a9712185aab;hp=8ee28a5ce6a64b981aa6a18a024219f836cc0b03;hpb=c34e891c7e3d48fa1bb136005e7c7567d410ed76;p=16.git diff --git a/src/lib/typdefst.h b/src/lib/typdefst.h index 8ee28a5c..da79ebc8 100755 --- a/src/lib/typdefst.h +++ b/src/lib/typdefst.h @@ -36,11 +36,13 @@ #define AAMAGENTA "\x1b[45;35m" #define AARESET "\x1b[0m" +#define MAXPAGE 4 + /* * typedefs of the game variables! */ typedef struct { - byte huge *data; + byte *data; word width; word height; byte *palette; @@ -70,17 +72,19 @@ typedef struct { word dy; /* row we are viewing on the virtual screen */ word sw; /* screen width */ word sh; /* screen heigth */ - word tilesw; /* screen width in tiles */ - word tilesh; /* screen height in tiles */ + word tw; /* screen width in tiles */ + word th; /* screen height in tiles */ word width; /* virtual width of the page */ word height; /* virtual height of the page */ - word tw; - word th; + word tilesw; /* virtual screen width in tiles */ + word tilesh; /* virtual screen height in tiles */ sword tilemidposscreenx; /* middle tile position */ sword tilemidposscreeny; /* middle tile position */ sword tileplayerposscreenx; /* player position on screen */ sword tileplayerposscreeny; /* player position on screen */ - iword pagesize; /* page size */ + word stridew; /*width/4*/ + word pagesize; /* page size */ + word pi; /* incremention page by this much to preserve location */ } page_t; typedef struct @@ -100,13 +104,21 @@ typedef struct boolean fpscap; //cap the fps var } kurokku_t; +typedef struct +{ + word pn; +} pan_t; + typedef struct { char old_mode; //old video mode before game! - page_t page[4]; //pointer to root page[0] - dword vmem_remain; //remaining video memory + page_t page[MAXPAGE]; //pointer to root page[0] + word vmem_remain; //remaining video memory byte num_of_pages; //number of actual pages - boolean p; //render page number + boolean __near p; //render page number + boolean __near r; //page flip if true + word pr[MAXPAGE][4]; //render sections of pages + //0000word startclk; float clk, tickclk; //timer } video_t; typedef struct