From d1d13aabf788ad913a722658789db147f30767a2 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Sun, 14 May 2017 18:18:21 -0500 Subject: [PATCH] 16_ca needs huge amounts of work and I should remember what needs to be done soon[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] added 1st scroll back [i work on CA] palette debug show values added wwww and i need to know how to see vrs/vrl imaage data palette index numbers [i am trying to find out how the hell you get the index number values of VRL/VRS] boom has been fixed ^^[CA_CacheMap added seems to be used in start a new game] what is mapsegs? --- src/lib/16_dbg.h | 2 +- src/lib/doslib | 2 +- src/xcroll.c | 40 ++++++++++++++++++++++++++++++++++------ 3 files changed, 36 insertions(+), 8 deletions(-) diff --git a/src/lib/16_dbg.h b/src/lib/16_dbg.h index ce2305b5..3322046c 100755 --- a/src/lib/16_dbg.h +++ b/src/lib/16_dbg.h @@ -7,7 +7,7 @@ #include "src/lib/16_tdef.h" #define __DEBUG__ -#define __DEBUG_InputMgr__ +//#define __DEBUG_InputMgr__ #define __DEBUG_MAP__ //#define __DEBUG_2__ //#define __DEBUG_CA__ diff --git a/src/lib/doslib b/src/lib/doslib index 68ae6bb8..dac2cfe2 160000 --- a/src/lib/doslib +++ b/src/lib/doslib @@ -1 +1 @@ -Subproject commit 68ae6bb890e460cefefb5f4e3d1ede505142cdfc +Subproject commit dac2cfe205617d6edcb6d483c23bc3d4254977d1 diff --git a/src/xcroll.c b/src/xcroll.c index a8c8e2ea..20a50904 100755 --- a/src/xcroll.c +++ b/src/xcroll.c @@ -24,9 +24,11 @@ #include "src/lib/16_timer.h" #include "src/lib/16_dbg.h" -#define FADE +//#define FADE //#define NOMAPLOAD +#define VERBOSESCROLL + static map_t map; float t; @@ -63,6 +65,8 @@ void main(int argc, char *argv[]) Startup16(&gvar); ggvv=&gvar; + // input! + IN_Default(0, &gvar.player[0],ctrl_Keyboard1, &gvar); if (argc >= 2) { if(argv[1]){ strcpy(bakapee, argv[1]); @@ -74,22 +78,40 @@ void main(int argc, char *argv[]) //----gvar.player[0].enti.spri.spritesheet = malloc(sizeof(struct vrs_container)); // create the map -// fprintf(stderr, "testing map load~ "); + #ifdef VERBOSESCROLL + fprintf(stderr, "testing map load~ "); + #endif CA_loadmap("data/test.map", &map, &gvar); #ifndef NOMAPLOAD chkmap(&map, 0); // initMap(&map); -// printf("chkmap ok "); -// fprintf(stderr, "yay map loaded~~\n"); #else chkmap(&map, 1); //initMap(&map); #endif + #ifdef VERBOSESCROLL + fprintf(stderr, "chkmap ok "); + fprintf(stderr, "yay map loaded~~\n"); + #endif + + #ifdef VERBOSESCROLL + fprintf(stderr, "press a key wwww\n"); + IN_StartAck (&gvar); while (!IN_CheckAck (&gvar)){} + #endif + // data + #ifdef VERBOSESCROLL + fprintf(stderr, "VRS_LoadVRS "); + #endif VRS_LoadVRS(bakapee, &gvar.player[0].enti, &gvar); + #ifdef VERBOSESCROLL + fprintf(stderr, "ok~\n"); + #endif - // input! - IN_Default(0, &gvar.player[0],ctrl_Keyboard1, &gvar); + #ifdef VERBOSESCROLL + fprintf(stderr, "press a key wwww\n"); + IN_StartAck (&gvar); while (!IN_CheckAck (&gvar)){} + #endif // save the palette #ifdef FADE @@ -109,6 +131,9 @@ void main(int argc, char *argv[]) //printf("1: %d\n", paloffset); map.tiles->data->offset=(paloffset/3); modexPalUpdate(map.tiles->data, &paloffset, 0, 0);*/ + #ifdef VERBOSESCROLL + fprintf(stderr, "VL_LoadPalFile "); + #endif VL_LoadPalFile(bakapeep, &gvar.video.palette, &gvar); //VL_LoadPalFile("data/default.pal", &gvar.video.palette); @@ -117,6 +142,9 @@ void main(int argc, char *argv[]) modexSavePalFile("data/g.pal", &gvar.video.palette); modexPalBlack(); //so player will not see loadings~ #endif + #ifdef VERBOSESCROLL + fprintf(stderr, "ok\n"); + #endif // setup camera and screen~ modexHiganbanaPageSetup(&gvar); -- 2.39.5