From: sparky4 Date: Tue, 14 Feb 2017 22:44:55 +0000 (-0600) Subject: hmmm layers in map_t .... X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=1f8ab84856824c246e1f66862a302eae41baf123;p=16.git hmmm layers in map_t .... --- diff --git a/ZCROLL.L16 b/ZCROLL.L16 new file mode 100755 index 00000000..ec5b8627 --- /dev/null +++ b/ZCROLL.L16 @@ -0,0 +1,55 @@ +01 02 03 04 00 03 03 03 03 03 03 03 03 04 11 11 11 11 11 11 11 +01 02 03 04 00 03 03 03 03 03 03 03 03 04 11 11 11 11 11 11 11 +04 05 06 07 08 00 01 00 01 00 00 11 11 11 11 11 11 11 11 11 11 11 +04 05 06 07 08 00 01 00 01 00 00 11 11 11 11 11 11 11 11 11 11 11 +08 09 10 11 12 04 01 00 01 00 00 11 11 11 11 11 11 11 11 11 11 11 +08 09 10 11 12 04 01 00 01 00 00 11 11 11 11 11 11 11 11 11 11 11 +12 13 14 15 16 00 01 01 01 05 08 11 11 11 11 11 11 11 11 11 11 11 +12 13 14 15 16 00 01 01 01 05 08 11 11 11 11 11 11 11 11 11 11 11 +16 00 00 04 00 00 00 00 00 08 08 11 11 11 03 11 11 11 11 11 11 11 +16 00 00 04 00 00 00 00 00 08 08 11 11 11 03 11 11 11 11 11 11 11 +11 11 11 11 11 00 00 00 00 08 08 11 11 11 11 11 11 11 11 11 11 11 +11 11 11 11 11 00 00 00 00 08 08 11 11 11 11 11 11 11 11 11 11 11 +11 11 11 11 11 00 00 00 00 11 11 11 11 11 11 11 11 11 11 11 11 11 +11 11 11 11 11 00 00 00 00 11 11 11 11 11 11 11 11 11 11 11 11 11 +11 11 11 11 11 00 00 00 00 11 11 11 11 11 11 11 11 03 11 11 11 11 +11 11 11 11 11 00 00 00 00 11 11 11 11 11 11 11 11 03 11 11 11 11 +11 11 11 11 11 11 11 11 11 11 00 11 11 11 11 11 11 03 11 11 11 11 +11 11 11 11 11 11 11 11 11 11 00 11 11 11 11 11 11 03 11 11 11 11 +11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 03 11 11 11 11 +11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 03 11 11 11 11 +11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 03 11 11 11 11 +11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 03 11 11 11 11 +11 11 11 11 11 11 11 11 11 11 11 11 11 03 03 03 03 01 02 03 04 03 +11 11 11 11 11 11 11 11 11 11 11 11 11 03 03 03 03 01 02 03 04 03 +11 11 11 11 11 11 11 11 11 11 11 11 03 11 11 11 11 05 06 07 08 06 +11 11 11 11 11 11 11 11 11 11 11 11 03 11 11 11 11 05 06 07 08 06 +11 11 11 11 11 11 11 11 11 11 03 03 11 11 11 11 11 09 10 11 12 06 +11 11 11 11 11 11 11 11 11 11 03 03 11 11 11 11 11 09 10 11 12 06 +11 11 11 11 11 11 11 11 11 03 11 11 11 11 11 11 11 13 14 15 16 03 +11 11 11 11 11 11 11 11 11 03 11 11 11 11 11 11 11 13 14 15 16 03 +11 11 11 11 11 11 11 11 11 03 11 11 11 11 11 11 11 11 11 11 11 03 +11 11 11 11 11 11 11 11 11 03 11 11 11 11 11 11 11 11 11 11 11 03 + +Project 16 zcroll.exe. This is just a test file! +version Feb 14 2017 16:41:55 +page[0]dxy: 16x16 + +player vars: + xy: 160x128 txy: 10x8 triggxy: 10x9 value: 0 + hp: 4 q: 1 info.dir: 2 d: 2 dire: 30 pdir: 0 + delay=0 + +VL_PrintmodexmemInfo: + Virtual Screen: 352x272 Tile: 22x17=((Virtual Screen)/16) + Screen: 320x240 Tile: 20x15=((Screen)/16) + Free Video Memory: 767 + page [0]=(a000:0000) size=23936 w=352 h=272 sw=320 sh=240 pi=1408 + [1]=(a000:5d80) size=23936 w=352 h=272 sw=320 sh=240 pi=1408 + [2]=(a000:bb00) size=8448 w=352 h=96 sw=352 sh=96 pi=1408 + [3]=(a000:dc00) size=8448 w=352 h=96 sw=352 sh=96 pi=1408 +gvar.video: + r=0 bgps=1 + +detected CPU type: 80386 or newer +detected FPU type: 80387 diff --git a/src/lib/scroll16.c b/src/lib/scroll16.c index 4f310f3a..4711fc76 100755 --- a/src/lib/scroll16.c +++ b/src/lib/scroll16.c @@ -566,6 +566,7 @@ mapDrawTile(tiles_t *t, word i, page_t *page, word x, word y) word rx, ry; //word textx=0, texty=0; //if(i==0) i=2; +// printf("%02d ", i); if(x >= page->width - t->tileWidth) printf("\n"); switch(i) { case 0: @@ -575,10 +576,8 @@ mapDrawTile(tiles_t *t, word i, page_t *page, word x, word y) default: rx = (((i-1) % ((t->pcximg->width)/t->tileWidth)) * t->tileWidth); ry = (((i-1) / ((t->pcximg->height)/t->tileHeight)) * t->tileHeight); -////0000 printf("i=%d\n", i); #ifndef TILERENDER if(!pagenorendermap) modexClearRegion(page, x, y, t->tileWidth, t->tileHeight, i+1); - //sprintf(global_temp_status_text2, "%c", i); modexprint(page, x+3, y-1, 1, 1, 2, global_temp_status_text2); #else modexDrawBmpRegion (page, x, y, rx, ry, t->tileWidth, t->tileHeight, i); //draw_vrl1_vgax_modex(x-rx,y-ry,vrl_header,vrl_lineoffs,buffer+sizeof(*vrl_header),bufsz-sizeof(*vrl_header)); @@ -596,6 +595,7 @@ mapDrawTile(tiles_t *t, word i, page_t *page, word x, word y) #endif*/ break; } + //sprintf(global_temp_status_text2, "%d", i); modexprint(page, x+3, y-1, 1, 1, 2, global_temp_status_text2); } void near mapDrawRow(map_view_t *mv, int tx, int ty, word y, player_t *player, word poopoffset)