]> 4ch.mooo.com Git - 16.git/blobdiff - src/pcxtest2.c
palllist not being worked on right now... i will work on sprite animation VERY soon
[16.git] / src / pcxtest2.c
index c6706448fec337396137ae2f489c59f946e00a56..2ab4863223d6edf3621ca91a4769a3b043989ab4 100755 (executable)
 #include <stdio.h>\r
 #include <dos.h>\r
 #include <string.h>\r
-#include "src/lib/modex16.h"\r
+#include "src/lib/16_vl.h"\r
 #include "src/lib/bitmap.h"\r
-#include "src/lib/planar.h"\r
+//----#include "src/lib/planar.h"\r
 \r
-global_game_variables_t gvar;\r
+static word far* clockw= (word far*) 0x046C; /* 18.2hz clock */\r
 \r
 /*\r
 void\r
@@ -55,8 +55,9 @@ DrawPBuf(page_t *page, int x, int y, planar_buf_t *p, byte sprite)
 */\r
 \r
 void main() {\r
+       static global_game_variables_t gvar;\r
        bitmap_t bmp;\r
-       planar_buf_t *p;\r
+//---- planar_buf_t *p;\r
        int i;\r
        word start;\r
        int plane;\r
@@ -84,10 +85,10 @@ void main() {
        }\r
 \r
 //0000 bmp = bitmapLoadPcx("data/koishi~~.pcx");\r
-       bmp = bitmapLoadPcx("data/chikyuu.pcx");\r
+       bmp = bitmapLoadPcx("data/chikyuu.pcx", &gvar);\r
 //     bmp = bitmapLoadPcx("data/koishi^^.pcx");\r
 //     bmp = bitmapLoadPcx("16/PCX_LIB/chikyuu.pcx");\r
-       p = planar_buf_from_bitmap(&bmp);\r
+//---- p = planar_buf_from_bitmap(&bmp);\r
        VGAmodeX(1, 1, &gvar);\r
        gvar.video.page[0]=modexDefaultPage(&gvar.video.page[0]);\r
        gvar.video.page[0].sw+=32;\r