#include "src/lib/16_dbg.h"\r
\r
#define MODEXZ\r
-//boolean dbg_noplayerinpu=1;\r
+boolean dbg_noplayerinpu=0;\r
\r
//TODO: known issues the array dependent mv stuff and player arrays\r
global_game_variables_t gvar;\r
fprintf(stderr, "yay map loaded~~\n");\r
\r
// data\r
- printf("loading sprite\n");\r
- read_vrs(&gvar, "data/spri/chikyuu.vrs", player[0].ent->spri->spritesheet); printf("sprite loaded\n");\r
+ read_vrs(&gvar, "data/spri/chikyuu.vrs", player[0].ent->spri->spritesheet);\r
\r
// input!\r
if(!dbg_noplayerinpu)\r
-{\r
- IN_Default(0, &player,ctrl_Keyboard1); printf("IN_defaulted\n");\r
-}\r
+ IN_Default(0, &player,ctrl_Keyboard1);\r
\r
// save the palette\r
#ifdef FADE\r
#ifdef MODEXZ\r
#ifdef FADE\r
modexPalBlack(); //reset the palette~\r
- printf("VGA\n");\r
CA_LoadFile("data/spri/chikyuu.pal", &pal, &gvar);\r
modexPalUpdate1(pal);\r
- printf("pallette\n");\r
gpal = modexNewPal();\r
modexPalSave(gpal);\r
modexSavePalFile("data/g.pal", gpal);\r
#endif\r
\r
// setup camera and screen~\r
-if(dbg_noplayerinpu)\r
-{\r
- //sprintf(&gvar.pee, "press a key for video setup");\r
strcpy(global_temp_status_text, "press a key for video setup");\r
modexprint(mv[0].page, 0, 64, 1, 7, 0, global_temp_status_text);\r
- getch();\r
-}\r
+\r
modexHiganbanaPageSetup(&gvar.video);\r
mv[0].page = &gvar.video.page[0];\r
mv[0].map = ↦\r
\r
// set up paging\r
//TODO: LOAD map data and position the map in the middle of the screen if smaller then screen\r
- mapGoTo(&mv, 0, 0);\r
+ mapGoTo(mv, 0, 0);\r
#endif\r
\r
//TODO: put player in starting position of spot\r
//default player position on the viewable map\r
player[0].tx = mv[0].tx + mv[0].page->tilemidposscreenx;\r
player[0].ty = mv[0].ty + mv[0].page->tilemidposscreeny;\r
- IN_initplayer(&player, 0); printf("player inited\n");\r
+ IN_initplayer(&player, 0);\r
\r
i = set_anim_by_id(player[0].ent->spri, 11);\r
print_anim_ids(player[0].ent->spri);\r
exit(-4);\r
}\r
//animate_spri(&(player[0].ent->spri));\r
- printf("spri ok\n");\r
\r
modexShowPage(mv[0].page);//!(gvar.video.p)\r
shinku_fps_indicator_page = 0; // we're on page 1 now, shinku(). follow along please or it will not be visible.\r
#ifdef FADE\r
modexFadeOn(4, gpal);\r
#endif\r
- printf("LOOP\n");\r
if(!dbg_noplayerinpu)\r
- while(!IN_KeyDown(sc_Escape) && player[0].hp>0)\r
+ while(!IN_KeyDown(sc_Escape))// && player[0].hp>0)\r
{\r
shinku(&gvar);\r
//top left corner & bottem right corner of map veiw be set as map edge trigger since maps are actually square\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("\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