]> 4ch.mooo.com Git - 16.git/commitdiff
boolean IN_KeyDown(byte code) polished hmmm vrs... hmmm stride is off www
authorsparky4 <sparky4@cock.li>
Thu, 5 Jan 2017 13:10:18 +0000 (07:10 -0600)
committersparky4 <sparky4@cock.li>
Thu, 5 Jan 2017 13:10:18 +0000 (07:10 -0600)
data/G.PAL
src/zcroll.c

index 0c0507ace9e3736b20523be7b7881e7d0d05e7f3..906897bc70e146ee900bce31986fb34212d9f138 100755 (executable)
Binary files a/data/G.PAL and b/data/G.PAL differ
index 167365433685807754bec450d7b25443bb61cbe7..3346ddb033fccbfe546da82b646e48c49c91731c 100755 (executable)
@@ -90,7 +90,7 @@ void main(int argc, char *argv[])
        modexPalSave(dpal);\r
        modexFadeOff(4, dpal);\r
 #endif\r
-       textInit();\r
+       //textInit();\r
        VGAmodeX(bakapee, 1, &gvar);\r
 #ifdef MODEXZ\r
 #ifdef FADE\r
@@ -140,14 +140,13 @@ void main(int argc, char *argv[])
 #endif\r
        exit(-4);\r
        }\r
-       //++++animate_spri(&(player[0].ent->spri));\r
+       //animate_spri((player[0].ent->spri), &gvar);\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
-       modexDrawSprite(mv[0].page, 16, 16, (player[0].data));\r
        /*strcpy(global_temp_status_text, "press enter for the loop of zcroll\nescape to quit");\r
        modexprint(&gvar.video.page[0], 144, 72, 1, 7, 0, global_temp_status_text);\r
        while(!IN_KeyDown(sc_Enter)){ if(IN_KeyDown(sc_Escape)) goto quit; } IN_UserInput(1,1);*///wwww\r
@@ -181,13 +180,9 @@ void main(int argc, char *argv[])
                if(IN_KeyDown(25)){ modexpdump(mv[0].page);\r
                         IN_UserInput(1,1);\r
                }       //p\r
-#ifdef FADE\r
-               if(IN_KeyDown(24)){ modexPalUpdate0(gpal); paloffset=0; modexpdump(mv[0].page); IN_UserInput(1,1); } //p\r
-               if(IN_KeyDown(22)){\r
-                       printf("2paloffset      =       %d\n", paloffset/3);\r
-                       IN_UserInput(1,1);\r
-               }\r
-#endif\r
+\r
+               if(IN_KeyDown(24)){ modexPalUpdate0(gpal); /*paloffset=0;*/ modexpdump(mv[0].page); IN_UserInput(1,1); } //o\r
+               if(IN_KeyDown(22)){ modexPalUpdate0(gpal); } //u\r
 \r
                //pan switch\r
                if(IN_KeyDown(88)){panswitch=!panswitch; IN_UserInput(1,1);}    //f12\r
@@ -208,7 +203,17 @@ void main(int argc, char *argv[])
                if(IN_KeyDown(66))      //f8\r
                {\r
 //                     modexDrawSprite(mv[0].page, 16, 16, &p);\r
-                       modexDrawSprite(mv[0].page, 32+72, 16, (player[0].data));\r
+//                     modexDrawSprite(mv[0].page, 32+72, 16, (player[0].data));\r
+                       switch(i)\r
+                       {\r
+                               case 11:\r
+                                       i=0;\r
+                                       player[0].ent->spri->x = 0;\r
+                               default:\r
+                                       i++;\r
+                                       player[0].ent->spri->delay = 1; animate_spri((player[0].ent->spri), &gvar); player[0].ent->spri->x += 20;\r
+                               break;\r
+                       }\r
                }\r
                //TODO fmemtest into page\r
                /*if(IN_KeyDown(4+1))   //4\r