dbg_noplayerinpu=0;\r
if(!dbg_noplayerinpu)\r
{\r
+ start_timer(&gvar);\r
+ //Startup16(&gvar);\r
IN_Startup();\r
//IN_Default(0,&player,ctrl_Joystick1);\r
//IN_SetControlType(0,&player,ctrl_Joystick1);\r
player[0].d=2;\r
player[0].persist_aniframe=0;\r
player[0].speed=4;\r
- start_timer(&gvar);\r
+\r
nibbletest();\r
if(dbg_noplayerinpu) getch();\r
booleantest();\r
//IN_Ack();\r
}\r
}\r
- IN_Shutdown(); }\r
+ IN_Shutdown();\r
+ //Shutdown16(&gvar);\r
+ }\r
//printf("%u\n", in.Keyboard[sc_Escape]);\r
printf("inputest.exe ");\r
printf("version %s\n", VERSION);\r
//#define FADE\r
#define MODEX //this is for mode x initiating\r
\r
-//boolean dbg_noplayerinpu=1;\r
+boolean dbg_nommpmca=1;\r
\r
//word far *clock= (word far*) 0x046C; /* 18.2hz clock */\r
//bitmap_t *p;\r
\r
pan.pn=1;\r
\r
- start_timer(&gvar);\r
-\r
/* create the map */\r
fprintf(stderr, "testing map load~ ");\r
loadmap("data/test.map", &map);\r
#endif\r
/* input! */\r
if(!dbg_noplayerinpu)\r
- {\r
- IN_Startup();\r
IN_Default(0,&player,ctrl_Keyboard1);\r
- //IN_Default(1,&player,ctrl_Joystick);\r
- }\r
\r
/* save the palette */\r
#ifdef MODEX\r
if(!panswitch){\r
walk(mv, &player, 0);\r
}else{\r
- panpagemanual(mv, player, 0);\r
+ panpagemanual(mv, &player, 0);\r
//printf(" player[0].q: %d", player[0].q); printf(" player[0].d: %d\n", player[0].d);\r
}\r
\r
#endif\r
VGAmodeX(0, 1, &gvar);\r
#endif\r
- if(!dbg_noplayerinpu)\r
- IN_Shutdown();\r
+ Shutdown16(&gvar);\r
printf("\nProject 16 scroll.exe. This is just a test file!\n");\r
printf("version %s\n", VERSION);\r
printf("tx: %d ", mv[0].tx);\r
//printf("mv[%u].tx: %d", pan.pn, mv[pan.pn].tx); printf(" mv[%u].ty: %d ", pan.pn, mv[pan.pn].ty);\r
printf("gvar.video.p=%u ", gvar.video.p); printf("gvar.video.r=%u ", gvar.video.r);\r
printf("pageflipflop=%u\n", pageflipflop);\r
- //0000printf("\ngvar.video.tickclk=%f\n", gvar.video.tickclk);\r
- //0000printf("gvar.video.clk=%f", gvar.video.clk);\r
+ //printf("gvar.kurokku: "); printf("%.0f ", clock()); printf("tiku=%lu ", gvar.kurokku.tiku); printf("t=%.0f ", gvar.kurokku.t); printf("ticktock()=%f ", ticktock(&gvar)); printf("%.0f fps", (double)gvar.kurokku.tiku/ticktock(&gvar));\r
printf("\n");\r
//printf("map.width=%d map.height=%d map.data[0]=%d\n", mv[0].map->width, mv[0].map->height, mv[0].map->data[0]);\r
\r