/* setup camera and screen~ */\r
modexHiganbanaPageSetup(&gvar.video);\r
ZC_MVSetup(&mv, &map, &gvar);\r
- ZC_ShowMV(&mv, gvar.video.p, 0);\r
+ ZC_ShowMV(&mv, gvar.video.sp, 0);\r
\r
// VL_PatternDraw(video_t *video, word pn, boolean sw, boolean allsw);\r
- VL_PatternDraw(&gvar.video, 0/*gvar.video.p*/, 0, 1);\r
+ VL_PatternDraw(&gvar.video, 0/*gvar.video.sp*/, 0, 1);\r
TESTBG34\r
DRAWCORNERBOXES\r
\r
if(IN_KeyDown(sc_R)){\r
gvar.video.page[0].dx=gvar.video.page[0].dy=gvar.video.page[1].dx=gvar.video.page[1].dy=16;\r
mv[0].tx = mv[0].ty = mv[1].tx = mv[1].ty = INITTNUM;\r
- VL_ShowPage(&gvar.video.page[gvar.video.p], 1, 0);\r
+ VL_ShowPage(&gvar.video.page[gvar.video.sp], 1, 0);\r
player[0].enti.q = 1; player[0].enti.d = 2;\r
x=y=0;\r
xdir=ydir=1;\r
#include "src/lib/16_in.h"\r
#include "src/lib/testpatt.h"\r
\r
-//VL_ShowPage(&gvar.video.page[gvar.video.p], 0, 1);\r
-//VL_ShowPage(&gvar.video.page[gvar.video.p], 0, 0);\r
-\r
#define FUNCTIONKEYFUNCTIONS \\r
if(IN_KeyDown(88)){ panswitch=!panswitch; IN_UserInput(1,1); } \\r
FUNCTIONKEYFUNCTIONS0EXE\r
ZC_panPageManual(&mv, &player, 0);\r
\r
#define FUNCTIONKEYDRAWJUNK \\r
- if(IN_KeyDown(1+1)){ gvar.video.p=0; ZC_ShowMV(&mv, 0, 0); } \\r
- if(IN_KeyDown(2+1)){ gvar.video.p=1; ZC_ShowMV(&mv, 0, 0); } \\r
- if(IN_KeyDown(3+1)){ gvar.video.p=2; ZC_ShowMV(&mv, 0, 1); } \\r
- if(IN_KeyDown(4+1)){ gvar.video.p=3; ZC_ShowMV(&mv, 0, 1); } \\r
+ if(IN_KeyDown(1+1)){ gvar.video.sp=0; ZC_ShowMV(&mv, 0, 0); } \\r
+ if(IN_KeyDown(2+1)){ gvar.video.sp=1; ZC_ShowMV(&mv, 0, 0); } \\r
+ if(IN_KeyDown(3+1)){ gvar.video.sp=2; ZC_ShowMV(&mv, 0, 1); } \\r
+ if(IN_KeyDown(4+1)){ gvar.video.sp=3; ZC_ShowMV(&mv, 0, 1); } \\r
FUNCTIONKEYDRAWJUNKNOMV\r
\r
#define FUNCTIONKEYDRAWJUNKNOMV \\r
//end of doslib origi vars\r
boolean __near rss; //render sprite switch\r
sword __near sprifilei; //player file's i\r
- nibble __near p; //render page number //BLEH\r
+ nibble __near p,sp; //render page number //show page number(for showpage)\r
boolean __near r; //page flip, showpage, or render if true\r
word pr[MAXPAGE][4]; //render sections of pages (this is supposed to be set up to draw sections of the screen if updated)\r
\r
result.tilesw=result.width/TILEWH;\r
result.tilesh=result.height/TILEWH;\r
result.id = p->id+1;\r
- result.stridew=p->sw/4;//result.width/4;\r
+ result.stridew=result.width/4;//p->sw/4;\r
result.pagesize = (word)(result.stridew)*result.height;\r
- switch(result.id)\r
+/* switch(result.id)\r
{\r
case 2:\r
result.pi=p->width*4;\r
case 3:\r
result.pi=p->pi;\r
break;\r
- }\r
+ }*/\r
+ result.pi=result.width*4;\r
\r
return result;\r
}\r
(video->page[2]) = modexNextPageFlexibleSize(&(video->page[1]), video->page[0].width, 96); video->num_of_pages++;\r
(video->page[3]) = modexNextPageFlexibleSize(&(video->page[2]), video->page[0].width, 96); video->num_of_pages++;\r
modexCalcVmemRemain(video);\r
- video->p=0;\r
+ video->sp=video->p=0;\r
video->r=1;\r
video->vh=video->page[0].height+video->page[1].height+video->page[3].height-8;//+video->page[2].height\r
//doslib origi var\r
pip[0].map = map;\r
pip[0].video = &gv->video;\r
pip[0].p = &gv->video.p;\r
+ pip[0].sp = &gv->video.sp;\r
ZC_MVInit(pip, 1, 1);\r
\r
for(i=ZC_MVI;i<gv->video.num_of_pages;i++)\r
pip[i].map = pip[0].map;\r
pip[i].video = pip[0].video;\r
pip[i].p = pip[0].p;\r
+ pip[i].sp = pip[0].sp;\r
// if(i>ZC_MVI) {\r
pip[i].tx = 1;\r
pip[i].ty = 1;\r
byte crtcOffset;\r
\r
/* calculate offset */\r
- offset = (word) moo[moo[0].video->p].page->data;\r
+ offset = (word) moo[moo[0].video->sp].page->data;\r
offset += moo[0].page->dy * (moo[0].page->width >> 2 );\r
offset += moo[0].page->dx >> 2;\r
\r
switch(sr)\r
{\r
case 1:\r
- crtcOffset = moo[moo[0].video->p].page->sw >> 3;\r
+ crtcOffset = moo[moo[0].video->sp].page->sw >> 3;\r
break;\r
default:\r
case 0:\r
//_fmemcpy((gv->video.page[(gv->video.p)]).data, (gv->video.page[(!gv->video.p)]).data, gv->video.page[(!gv->video.p)].pagesize);\r
//vga_restore_rm0wm0();\r
// if(!pageploop) modexCopyPageRegion(&(gv->video.page[(gv->video.p)]), &(gv->video.page[(!gv->video.p)]), 0, 0, 0, 0, gv->video.page[gv->video.p].width, gv->video.page[!gv->video.p].height);\r
- VL_ShowPage(&(gv->video.page[gv->video.p]), gv->kurokku.fpscap, 0);//VL_ShowPage(&(gv->video.page[gv->video.p]), gv->kurokku.fpscap, 0);\r
+ VL_ShowPage(&(gv->video.page[gv->video.sp]), gv->kurokku.fpscap, 0);\r
// if(!pageploop) gv->video.p=!gv->video.p;\r
gv->video.r =!gv->video.r ;\r
//0000gv->video.tickclk = ((*clockw)-gv->video.startclk)/18.2;\r
{\r
IN_ReadControl(0,&player);\r
ZC_panPageManual(&mv, &player, 0);\r
- //[gvar.video.p]\r
+ //[gvar.video.sp]\r
//ZC_MVSync(&mv);\r
\r
/*if(i<5){\r
case 0:\r
pee:\r
// go right\r
- gvar.video.page[gvar.video.p].dx++;\r
+ gvar.video.page[gvar.video.sp].dx++;\r
if(i==5){ if(j>=31){ i++; j=0; goto baka; }else j++; }else\r
if(j>=32){ k++; j=0; }else j++;\r
break;\r
case 1:\r
// go left\r
- gvar.video.page[gvar.video.p].dx--;\r
+ gvar.video.page[gvar.video.sp].dx--;\r
if(j>=32){ k++; j=0; }else j++;\r
break;\r
case 2:\r
// go up\r
- gvar.video.page[gvar.video.p].dy++;\r
+ gvar.video.page[gvar.video.sp].dy++;\r
if(j>=32){ k++; j=0; }else j++;\r
break;\r
case 3:\r
// go down\r
- gvar.video.page[gvar.video.p].dy--;\r
+ gvar.video.page[gvar.video.sp].dy--;\r
if(j>=32){ k=0; j=0; i++; }else j++;\r
break;\r
default:\r
}\r
// if(i>PAL_SIZE) i=0;\r
}//9*/\r
- if(IN_KeyDown(25)){ modexpdump(&gvar.video.page[gvar.video.p]); IN_UserInput(1,1); }//p\r
- //VL_ShowPage(&gvar.video.page[gvar.video.p], 0, 0);\r
+ if(IN_KeyDown(25)){ modexpdump(&gvar.video.page[gvar.video.sp]); IN_UserInput(1,1); }//p\r
+ //VL_ShowPage(&gvar.video.page[gvar.video.sp], 0, 0);\r
ZC_ShowMV(&mv, 0, 0);\r
}\r
\r
printf("Project 16 test.exe. This is just a test file!\n");\r
printf("version %s\n", VERSION);\r
VL_PrintmodexmemInfo(&gvar.video);\r
- printf("tx=%d ", mv[gvar.video.p].tx); printf("ty=%d ", mv[gvar.video.p].ty); printf("player.d=%d\n", player[0].enti.d);\r
+ printf("tx=%d ", mv[gvar.video.sp].tx); printf("ty=%d ", mv[gvar.video.sp].ty); printf("player.d=%d\n", player[0].enti.d);\r
//IN_Shutdown();\r
//====modexPalBlack();\r
//====modexFadeOn(1, pal);\r