From: sparky4 Date: Fri, 14 Apr 2017 00:16:46 +0000 (-0500) Subject: p16 is being worked on a bunch by me wwww [16_ca needs huge amounts of work and I... X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=cc968ea5d3917827472954028d2d7efe742d4a2b;p=16.git p16 is being worked on a bunch by me wwww [16_ca needs huge amounts of work and I should remember what needs to be done soon][OpenVGMFile needs to be ported to 16_snd.c]going to port rest of code to borland c some time so we can use the core components of id engine here [going to add 16_us.c eventually but the debug system and CA_ PM_ and MM_ usage is priority now]older zcroll renamed to xcroll][zcroll is now the pre menu game loop system with PROPER data usage with CAMMPM] MM_ShowMemory is quite buggy on real machines. i need to debug it and fix added a struct printer[gvar.mm is FUCKING HUGE 14402 bytes FAT\!]16_rf now compiles BT UNKNOWN ON WHAT IT DOSE\! text box creates a ghost because page 1 do not have bg info thus it is stored and saved.... wwww fizzfade alsmost perfectly works\! --- diff --git a/src/bakapi.c b/src/bakapi.c index fa03d403..cc26c64c 100755 --- a/src/bakapi.c +++ b/src/bakapi.c @@ -32,7 +32,7 @@ void TL_VidInit(global_game_variables_t *gvar){} //int ch=0x0; #define SETUPPAGEBAKAPI \ -gvar.video.page[0] = modexDefaultPage(&gvar.video.page[0]/*, &gvar.video*/); \ +gvar.video.page[0] = modexDefaultPage(&gvar.video.page[0]); \ gvar.video.page[1] = modexNextPage(&gvar.video.page[0]); @@ -146,8 +146,12 @@ main(int argc, char *argvar[]) for(w=0;w<64000;w++) { ding(&gvar.video.page[0], &bakapee, 2); - ding(&gvar.video.page[1], &bakapee, 2); +// ding(&gvar.video.page[1], &bakapee, 2); } + modexClearRegion(&(gvar.video.page[1]), 0, 0, gvar.video.page[0].width, gvar.video.page[0].height, 14); + VL_ShowPage(&gvar.video.page[1], 0, 0); + while(!kbhit()){} getch(); + VL_ShowPage(&gvar.video.page[0], 0, 0); #ifdef BAKAFIZZUNSIGNED baka_FizzleFade (gvar.video.ofs.bufferofs, gvar.video.ofs.displayofs, gvar.video.page[0].width, gvar.video.page[0].height, 70, true, &gvar); #else @@ -171,7 +175,13 @@ main(int argc, char *argvar[]) }else c=getch(); } - if(!panswitch) ding(&gvar.video.page[0], &bakapee, key); + if(!panswitch){ + if(key==9) + { + ding(&gvar.video.page[1], &bakapee, 4); + ding(&gvar.video.page[0], &bakapee, 4); + baka_FizzleFade (gvar.video.ofs.bufferofs, gvar.video.ofs.displayofs, gvar.video.page[0].width, gvar.video.page[0].height, 70, true, &gvar); + }else ding(&gvar.video.page[0], &bakapee, key); } else ding(&gvar.video.page[0], &bakapee, 2); if(panswitch!=0) { @@ -251,6 +261,7 @@ main(int argc, char *argvar[]) // this code is written around modex16 which so far is a better fit than using DOSLIB vga directly, so leave MXLIB code in. // we'll integrate DOSLIB vga into that part of the code instead for less disruption. -- J.C. VGAmodeX(0, 0, &gvar); + clrscr(); //added to clear screen wwww // user imput switch //fprintf(stderr, "xx=%d yy=%d tile=%d\n", bakapee.xx, bakapee.yy, bakapee.tile); //fprintf(stderr, "dx=%d dy=%d ", gvar.video.page[0].dx, gvar.video.page[0].dy); @@ -285,16 +296,17 @@ pee: d=0; break; case 'p': // test pan - switch (panswitch) - { - case 0: - panswitch=1; - break; - case 1: - panswitch=0; - break; - } - goto pee; + switch (panswitch) + { + case 0: + panswitch=1; + break; + case 1: + panswitch=0; + break; + } + key=0; + goto pee; break; case 'b': // test tile change switch (bakapee.tile) @@ -335,7 +347,6 @@ pee: break; default: key=0; - clrscr(); //added to clear screen wwww break; } } diff --git a/src/lib/bakapee.c b/src/lib/bakapee.c index d9fd1e5c..26d7c802 100755 --- a/src/lib/bakapee.c +++ b/src/lib/bakapee.c @@ -166,6 +166,7 @@ modexprint(&(gvar->video.page[0]), PIXPOSX, q+PIXPOSY, 1, 0, 47, 0, 1, global_te } frame++; //-- while (TimeCountsw/2, page->sh/2, 1, 0, 47, 0, 1, "bakapi"); break; - case 9: +/* case 9: + modexClearRegion(&(ggvv->video.page[0]), 0, 0, ggvv->video.page[0].width/2, ggvv->video.page[0].height/2, 15); #ifdef BAKAFIZZUNSIGNED - baka_FizzleFade (ggvv->video.ofs.bufferofs, ggvv->video.ofs.displayofs, vga_state.vga_width, vga_state.vga_height, 70, true, ggvv); +// baka_FizzleFade (ggvv->video.ofs.bufferofs, ggvv->video.ofs.displayofs, vga_state.vga_width, vga_state.vga_height, 70, true, ggvv); + baka_FizzleFade (ggvv->video.ofs.bufferofs, ggvv->video.ofs.displayofs, ggvv->video.page[0].width, ggvv->video.page[0].height, 70, true, ggvv); #else baka_FizzleFade (&ggvv->video.page[1], &ggvv->video.page[0], vga_state.vga_width, vga_state.vga_height, 70, true, ggvv); #endif - break; + break;*/ case 10: ssd(page, pee, q); /*printf("%d\n", pee->coor);*/ break;