X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fscroll.c;h=ceee8644a7fcd03b181050fdf85ce34586820f17;hb=e95a76643912c26beb95828a4a28798586ab6a92;hp=8279a20e10a17cb8ce9eb5a26641563a20d126a8;hpb=8e7cced60cc3375099328304114e9a1ce4ea5139;p=16.git diff --git a/src/scroll.c b/src/scroll.c index 8279a20e..ceee8644 100644 --- a/src/scroll.c +++ b/src/scroll.c @@ -1,29 +1,11 @@ #include "src/lib/dos_kb.h" #include "src/lib/mapread.h" -//#include "16\lib\x\modex.h" #include "src/lib/wtest/wtest.c" #include "src/lib/planar.c" //====#include "src\lib\ems.c" - + //word far *clock= (word far*) 0x046C; /* 18.2hz clock */ -/*typedef struct { - bitmap_t *data; - word tileHeight; - word tileWidth; - unsigned int rows; - unsigned int cols; -} tiles_t; - - -typedef struct { - byte *data; - tiles_t *tiles; - int width; - int height; -} map_t;*/ - - typedef struct { map_t *map; page_t *page; @@ -70,8 +52,8 @@ void animatePlayer(map_view_t *src, map_view_t *dest, /*map_view_t *top, */sword //place holder definitions //#define MAPX 200 //#define MAPY 150 -#define TRIGGX 10 -#define TRIGGY 9 +//#define TRIGGX 10 +//#define TRIGGY 9 void main() { size_t oldfreemem=GetFreeSize(); @@ -124,9 +106,9 @@ void main() { /* create the map */ //0000 printf("Total used @ before map load: %zu\n", oldfreemem-GetFreeSize()); -//0000 fprintf(stderr, "testing~\n"); +//0000 fprintf(stderr, "testing~\n"); loadmap("data/test.map", &map); -//0000 fprintf(stderr, "yay map loaded~~\n"); +//0000 fprintf(stderr, "yay map loaded~~\n"); //---- map = allocMap(map.width,map.height); //20x15 is the resolution of the screen you can make maps smaller than 20x15 but the null space needs to be drawn properly //if(isEMS()) printf("%d tesuto\n", coretotalEMS()); //---- initMap(&map); @@ -138,13 +120,13 @@ void main() { ptr = map.data; mappalptr = map.tiles->data->palette; /* data */ -//0000 printf("Total used @ before image loading: %zu\n", oldfreemem-GetFreeSize()); - ptmp = bitmapLoadPcx("data/ptmp.pcx"); // load sprite +//0000 printf("Total used @ before image loading: %zu\n", oldfreemem-GetFreeSize()); + ptmp = bitmapLoadPcx("data/ptmp.pcx"); // load sprite //npctmp = bitmapLoadPcx("ptmp1.pcx"); // load sprite - + /* create the planar buffer */ -//0000 printf("Total used @ before planar buffer creation: %zu\n", oldfreemem-GetFreeSize()); - p = planar_buf_from_bitmap(&ptmp); +//0000 printf("Total used @ before planar buffer creation: %zu\n", oldfreemem-GetFreeSize()); + p = planar_buf_from_bitmap(&ptmp); //0000 printf("Total used @ after planar buffer creation: %zu\n", oldfreemem-GetFreeSize()); /*if(isEMS())