]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_head.h
==160x120 is back==
[16.git] / src / lib / 16_head.h
index 8d31e208d1416be68b17fe131755249bcae66d50..73fa33d0bbcffcd6b30d759e37f3ee170e63070f 100755 (executable)
 #include "src/lib/nyan/kitten.h"\r
 #include "src/lib/types.h"\r
 \r
-//0000 test type def wwww\r
-/*struct list {\r
-       struct list __based(__self) *next;\r
-       int         value;\r
-};*/\r
+#define VERSION __DATE__ " " __TIME__\r
 \r
 /* Control codes for all keys on the keyboard */\r
 //here temperarly\r
 #define KEY_MENU               (0x75)\r
 */\r
 \r
-static dword far* clockdw= (dword far*) 0x046C; /* 18.2hz clock */\r
+static word far* clockw= (word far*) 0x046C; /* 18.2hz clock */\r
 extern int                     profilehandle,debughandle;      //make it into game global\r
 \r
 #define __DEBUG__\r
@@ -168,8 +164,6 @@ extern      int                     profilehandle,debughandle;      //make it into game global
 typedef union REGPACK  regs_t;\r
 #endif\r
 \r
-typedef        enum    {false,true}    boolean;\r
-\r
 #ifdef __WATCOMC__\r
 typedef void __based(__self) * memptr;\r
 #endif\r
@@ -177,6 +171,28 @@ typedef void __based(__self) * memptr;
 typedef void _seg * memptr;\r
 #endif\r
 \r
+/*\r
+ * typedefs of the game variables!\r
+ */\r
+typedef struct {\r
+       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 tilesw;            /* screen width in tiles */\r
+       word tilesh;            /* screen height in tiles */\r
+       word width;             /* virtual width of the page */\r
+       word height;    /* virtual height of the page */\r
+       word tw;\r
+       word th;\r
+       sword tilemidposscreenx;        /* middle tile position */\r
+       sword tilemidposscreeny;        /* middle tile position */\r
+       sword tileplayerposscreenx;     /* player position on screen */\r
+       sword tileplayerposscreeny;     /* player position on screen */\r
+} page_t;\r
+\r
 typedef struct\r
 {\r
 //     int showmemhandle;\r
@@ -186,12 +202,26 @@ typedef struct
 \r
 typedef struct\r
 {\r
-       int old_mode;   //old video mode before game!\r
        word frames_per_second;\r
        clock_t t;\r
-       dword tiku;\r
-       word far* clock;\r
+       dword tiku;             //frames passed\r
+       word clock_start;       //timer start\r
+       word *clock;    //current time on clock\r
+       boolean fpscap; //cap the fps var\r
+} kurokku_t;\r
+\r
+typedef struct\r
+{\r
+       long old_mode;  //old video mode before game!\r
+       page_t page[4]; //pointer to root page[0]\r
+} video_t;\r
+\r
+typedef struct\r
+{\r
+       video_t video;  // video settings variable\r
+       byte *pee;              // message for fps\r
        handle_t handle;        //handles for file logging\r
+       kurokku_t kurokku;      //clock struct\r
 } global_game_variables_t;\r
 \r
 /* local function */\r