void main(int argc, char *argv[])\r
{\r
int i, j;\r
- word start, end;\r
+ word startclk, endclk;\r
word p, k;\r
byte *pal, *pal2;\r
sword bakapee;\r
/* fade in */\r
modexFadeOn(1, pal2);\r
\r
- i=0,k=0,j=0,p=0;\r
- start = *clockw;\r
- while(!IN_KeyDown(sc_Escape) && i<5)\r
+ i=0,k=0,j=0,p=1;\r
+ startclk = *clockw;\r
+ while(!IN_KeyDown(sc_Escape))\r
{\r
IN_ReadControl(0,&player);\r
+ if(i<5){\r
switch (k)\r
{\r
case 0:\r
default:\r
\r
break;\r
+ }}else{\r
+ modexClearRegion(&gvar.video.page[1], 0, gvar.video.page[0].height/2, gvar.video.page[0].width-32, 16, 45);\r
+ if(IN_KeyDown(6)) modexClearRegion(&gvar.video.page[1], 0, gvar.video.page[0].height/2, gvar.video.page[0].width, 16, 45);\r
}\r
if(IN_KeyDown(2)) p=0;\r
if(IN_KeyDown(3)) p=1;\r
+ //if(IN_KeyDown(6)) modexClearRegion(&gvar.video.page[1], 0, 0, gvar.video.page[0].sw-64, gvar.video.page[0].sh-16, 45);\r
modexShowPage(&gvar.video.page[p]);\r
}\r
\r
- end = *clockw;\r
+ endclk = *clockw;\r
\r
/* fade back to text mode */\r
modexFadeOff(1, pal2);\r