]> 4ch.mooo.com Git - 16.git/commitdiff
scroll.exe somewhat works again! wwww
authorsparky4 <sparky4@cock.li>
Wed, 29 Jul 2015 17:58:58 +0000 (12:58 -0500)
committersparky4 <sparky4@cock.li>
Wed, 29 Jul 2015 17:58:58 +0000 (12:58 -0500)
modified:   16.hed
modified:   inputest.exe
modified:   makefile
modified:   scroll.exe
modified:   sountest.exe
modified:   src/lib/16_in.h
modified:   src/scroll.c

16.hed
inputest.exe
makefile
scroll.exe
sountest.exe
src/lib/16_in.h
src/scroll.c

diff --git a/16.hed b/16.hed
index 39776ae919630abc22bbd8a5b59ed36085174721..b0e066a7c218a9ce6e114b3fc03cd6d94f567ecb 100644 (file)
Binary files a/16.hed and b/16.hed differ
index 37ca5d823869cfdf803993b7316680097cf0e00f..b23b7ecd44878ce584b0ec2ea7c31c928bf3fde4 100644 (file)
Binary files a/inputest.exe and b/inputest.exe differ
index b3efaf5453b6a0190d119bacdb291e041244c1a9..136770b87f9d484dd1831c352692012c3c98ef18 100644 (file)
--- a/makefile
+++ b/makefile
@@ -213,8 +213,8 @@ wcpu.$(OBJ): $(WCPULIB)wcpu.h $(WCPULIB)wcpu.c
 16text.$(OBJ): $(SRCLIB)16text.c
        wcl $(FLAGS) -c $(SRCLIB)16text.c
 
-mapread.$(OBJ): $(SRCLIB)mapread.h $(SRCLIB)mapread.c 16.lib
-       wcl $(FLAGS) -c $(SRCLIB)mapread.c 16.lib
+mapread.$(OBJ): $(SRCLIB)mapread.h $(SRCLIB)mapread.c
+       wcl $(FLAGS) -c $(SRCLIB)mapread.c
 
 #fmapread.$(OBJ): $(SRCLIB)fmapread.h $(SRCLIB)fmapread.c 16.lib
 #      wcl $(FLAGS) $(MFLAGS) -c $(SRCLIB)fmapread.c 16.lib
@@ -286,3 +286,5 @@ clean: .symbolic
        @$(REMOVECOMMAND) __WCL__.LNK
 #      @$(REMOVECOMMAND) *.smp
        @$(REMOVECOMMAND) *.SMP
+       @$(REMOVECOMMAND) 16.hed
+       
index cb599321ebab2b83ea221d828d3f4d46910f2e26..9ed8aecac418018e8b1b742d981b43b1dd06fb7e 100644 (file)
Binary files a/scroll.exe and b/scroll.exe differ
index 4aa8c2b33238a5231c406fb52ebe8fdffe89c431..b8b35c3373aee373f7f17ffcd6024818ac6074fe 100644 (file)
Binary files a/sountest.exe and b/sountest.exe differ
index 8008ab8641cda8756977fee740dd95f9533e0cdd..9b3e9db9944025176f149569e2bc84c9ec576a96 100644 (file)
@@ -219,7 +219,7 @@ typedef     struct
        word q; //loop variable
        word speed;             //player speed!\r
        bitmap_t data; //supposively the sprite sheet data\r
-       int hp; //hitpoints of the player
+       sword hp; //hitpoints of the player
        word persist_aniframe;    /* gonna be increased to 1 before being used, so 0 is ok for default */\r
        CursorInfo      info;\r
        ControlType     Controls;
index 03411b3c0788fb3dbfe20e5b251f75e30b34cde9..d56ce36e6dd5a3cb33b323314556317911fe6270 100644 (file)
@@ -37,7 +37,7 @@ void main()
        const char *cpus;
        //static int persist_aniframe = 0;    /* gonna be increased to 1 before being used, so 0 is ok for default */
        page_t screen, screen2, screen3;
-       map_t map;
+       static map_t map;
        map_view_t mv[3];
        map_view_t *bg, *spri, *mask;//, *tmp;
        //map_view_db_t pgid[4];
@@ -81,9 +81,9 @@ void main()
 
        /* create the map */
 //0000 printf("Total used @ before map load:                   %zu\n", oldfreemem-GetFreeSize());
-//0000 fprintf(stderr, "testing~\n");
+fprintf(stderr, "testing~\n");
        loadmap("data/test.map", &map);
-//0000 fprintf(stderr, "yay map loaded~~\n");
+fprintf(stderr, "yay map loaded~~\n");
 //---- map = allocMap(map.width,map.height); //20x15 is the resolution of the screen you can make maps smaller than 20x15 but the null space needs to be drawn properly
        //if(isEMS()) printf("%d tesuto\n", coretotalEMS());
 //---- initMap(&map);
@@ -391,15 +391,15 @@ void main()
        //else printf("\nplayer[0].y: %d\n", player[0].y);
        printf("player[0].tx: %d", player[0].tx); printf("              player[0].ty: %d\n", player[0].ty);
        printf("player[0].triggx: %d", player[0].triggerx); printf("    player[0].triggy: %d\n", player[0].triggery);
-       printf("player[0].hp: %d", player[0].hp);       printf("        player[0].q: %d", player[0].q); printf("        player[0].info.dir: %d\n", player[0].info.dir);
+       printf("player[0].hp: %d", (player[0].hp));     printf("        player[0].q: %d", player[0].q); printf("        player[0].info.dir: %d\n", player[0].info.dir);
        printf("tile data value at player trigger position: %d\n", bg->map->data[(player[0].triggerx-1)+(map.width*(player[0].triggery-1))]);
        printf("palette offset: %d\n", paloffset/3);
 //++++ printf("Total used: %zu\n", oldfreemem-GetFreeSize());
 //++++ printf("Total free: %zu\n", GetFreeSize());
        printf("temporary player sprite 0: http://www.pixiv.net/member_illust.php?mode=medium&illust_id=45556867\n");
        printf("temporary player sprite 1: http://www.pixiv.net/member_illust.php?mode=medium&illust_id=44606385\n");
-       printf("Screen: %dx", screen.width);    printf("%d\n", screen.height);
-       printf("Screen2: %dx", screen2.width);  printf("%d\n", screen2.height);
+       printf("Screen: %d", screen.width);     printf("%d\n", screen.height);
+       printf("Screen2: %d", screen2.width);   printf("%d\n", screen2.height);
        //printf("map.width=%d  map.height=%d   map.data[0]=%d\n", bg->map->width, bg->map->height, bg->map->data[0]);
        //xmsfree(&map);
        //xmsfree(bg);