]> 4ch.mooo.com Git - 16.git/blobdiff - src/scroll.c
i want to make an FPS system
[16.git] / src / scroll.c
index 7919971abc6a8e4aedf4a3fd07386ced07588c0d..b8065566da84a69c686a407149fd9540e49111cf 100644 (file)
@@ -31,7 +31,6 @@
 
 void main()
 {
-       dword tiku = 0;
 //     word panswitch=0, panq=1, pand=0;
        global_game_variables_t gvar;
        word panpagenum=0; //for panning!
@@ -188,7 +187,7 @@ void main()
 #endif
        while(!IN_KeyDown(sc_Escape) && player[0].hp>0)
        {
-               sprintf(mesg, "%lu", tiku);
+               sprintf(mesg, "%lu", gvar.tiku);
                modexprint(mv[1].page, 16, 16, 1, 15, 0, mesg);
                shinku(mv[1].page, &gvar);
                IN_ReadControl(0,&player);
@@ -356,7 +355,7 @@ void main()
 
        if((player[0].q==1) && !(player[0].x%TILEWH==0 && player[0].y%TILEWH==0)) break;        //incase things go out of sync!
 
-       tiku++;
+       gvar.tiku++;
        }
 
        /* fade back to text mode */
@@ -387,6 +386,7 @@ void main()
        printf("Screen2: %dx", screen2.width);  printf("%d\n", screen2.height);
        printf("map: %dx%d\n", map.width, map.height);
        printf("\n");
+       printf("player[0].persist_aniframe: %d\n", player[0].persist_aniframe);
 //     printf("player[0].info.x: %d", player[0].info.xaxis); printf("          player[0].info.y: %d\n", player[0].info.yaxis);
 //     printf("player[0].info.tx: %d", player[0].info.x); printf("             player[0].info.ty: %d\n", player[0].info.y);
        //printf("map.width=%d  map.height=%d   map.data[0]=%d\n", bg->map->width, bg->map->height, bg->map->data[0]);