X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ftypdefst.h;h=d6f972b144451d05abc843b050258a0ef22f5919;hb=b6b0bffba1968bc405ae6dea1a271811700cf03b;hp=8c80cbe14883ac1e6af73a2236fc5c4ff7c51498;hpb=8eedd2ca5b4a1c8bf2c6629a98d26deafc64e19f;p=16.git diff --git a/src/lib/typdefst.h b/src/lib/typdefst.h index 8c80cbe1..d6f972b1 100755 --- a/src/lib/typdefst.h +++ b/src/lib/typdefst.h @@ -36,6 +36,8 @@ #define AAMAGENTA "\x1b[45;35m" #define AARESET "\x1b[0m" +#define MAXPAGE 4 + /* * typedefs of the game variables! */ @@ -70,17 +72,17 @@ 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 */ + sdiword pagesize; /* page size */ } page_t; typedef struct @@ -100,15 +102,18 @@ typedef struct boolean fpscap; //cap the fps var } kurokku_t; -#define MAXPAGE 4 +typedef struct +{ + word pn; +} pan_t; typedef struct { char old_mode; //old video mode before game! page_t page[MAXPAGE]; //pointer to root page[0] - sdword vmem_remain; //remaining video memory + sdiword vmem_remain; //remaining video memory byte num_of_pages; //number of actual pages - boolean p; //render page number + boolean __near p; //render page number word pr[MAXPAGE][4]; //render sections of pages } video_t;