]> 4ch.mooo.com Git - 16.git/commitdiff
the timer makes it so unstable! wwww
authorsparky4 <sparky4@cock.li>
Mon, 31 Aug 2015 16:15:30 +0000 (11:15 -0500)
committersparky4 <sparky4@cock.li>
Mon, 31 Aug 2015 16:15:30 +0000 (11:15 -0500)
modified:   scroll.exe
modified:   src/scroll.c

scroll.exe
src/scroll.c

index 20e9890313c5a666aaa176c9c6805951d0d23849..0e48dc1870fbd00fd7ed18f147fe8559a4f0e807 100755 (executable)
Binary files a/scroll.exe and b/scroll.exe differ
index 575e2406b9f8ddad0884c53cad08025502687497..2e5c69f7f08563ab51a1923c947c367d1472dffd 100755 (executable)
@@ -21,7 +21,7 @@
  */
 
 #include "src/lib/scroll16.h"
-#include "src/lib/mapread.h"
+//#include "src/lib/mapread.h"
 #include "src/lib/wcpu/wcpu.h"
 
 //#define FADE
@@ -54,10 +54,10 @@ void main()
 
        player[0].persist_aniframe=0;
        player[0].speed=4;
-       printf("starting timer\n");
-       start_timer(&gvar);
-       gvar.frames_per_second = 60;
-       printf("ok\n");
+       //0000printf("starting timer\n");
+//++++ start_timer(&gvar);
+//++++ gvar.frames_per_second = 60;
+//0000 printf("ok\n");
        //extern struct inconfig inpu;
 
 //     atexit(qclean());
@@ -73,7 +73,7 @@ void main()
        map.width=0;
        map.height=0;
        chkmap(&map, 1);
-       printf("chkmap ok\n");
+//     printf("chkmap ok\n");
 //0000 fprintf(stderr, "yay map loaded~~\n");
        mv[0].map = &map;
        mv[1].map = &map;
@@ -84,17 +84,17 @@ void main()
        mappalptr = map.tiles->data->palette;
        /* data */
 //0000 printf("Total used @ before image loading:              %zu\n", oldfreemem-GetFreeSize());
-//++++ player[0].data = bitmapLoadPcx("data/ptmp.pcx"); // load sprite
+       player[0].data = bitmapLoadPcx("data/ptmp.pcx"); // load sprite
        //npctmp = bitmapLoadPcx("ptmp1.pcx"); // load sprite
 
        /* create the planar buffer */
 //0000 printf("Total used @ before planar buffer creation:     %zu\n", oldfreemem-GetFreeSize());
-//++++ p = planar_buf_from_bitmap(&player[0].data);
-//     printf("planar buffer ok\n");
+       p = planar_buf_from_bitmap(&player[0].data);
+//0000 printf("planar buffer ok\n");
 //0000 printf("Total used @ after planar buffer creation:      %zu\n", oldfreemem-GetFreeSize());
 
        /*      input!  */
-       getch();
+//0000 getch();
        IN_Startup();
        IN_Default(0,&player,ctrl_Joystick);