From 1a0471d738a676b293afaceb6274bc26628d3b1a Mon Sep 17 00:00:00 2001 From: sparky4 Date: Thu, 5 Jan 2017 07:10:18 -0600 Subject: [PATCH] boolean IN_KeyDown(byte code) polished hmmm vrs... hmmm stride is off www --- data/G.PAL | Bin 768 -> 768 bytes src/zcroll.c | 27 ++++++++++++++++----------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/data/G.PAL b/data/G.PAL index 0c0507ace9e3736b20523be7b7881e7d0d05e7f3..906897bc70e146ee900bce31986fb34212d9f138 100755 GIT binary patch literal 768 zcmZXSYjd(N6ol7S3tsRBqLhmPDi0`Dcs!P6Syffj zG`HJLVVi&rct8lGKmpW%YN@ByG#Umii>}KkVwO=#bBxUdu7PlYbdADB?V$Dg));F{ z4CWS3E@j9%Q)!rM*cQBJgaYXS#VhJJv=^0_lE%(pXYuZ`3)yAtBovTJCjep~2TI@_ zxb{FAwK=T*KUA=Oc*lk|8f3YkXXAZAZ83^y{|z z`r6*_{=JL4E+-{*U<%9!gZ1OXW;ERCPu^s_pHIWpJh9EAyDf!ZB~f$AZnfmK(RC~q zuuM4iL*P8d?kEeiVn2~${uZ0{VfUH)ms5N_=lA!sI^PfdKfUhv{}$CB+w6j(C|uY5 E22HbD8vptFd-GLFp$Se;sG#0PleJ~quXJup&JCY;zrkmN;Y#K)|G>z1Z+^M;qjJHt{ zy!Xm8>tM?JeX$L4JC0upu&B(hkXkd9&(~2I3h-%40U`e-xN+`2=jNW?wjlT_;W>E@lG^q2g-kV~#Ia3{ z7KuP!j@G>C<;Iy@s@VtfOcHYjD9V6(|0@1ih++-~zwc+z4f#^SgbU!dd4f|aJV^_T z&lnl?-V!5GlQv-y6nj0$v@ZVDkq;!RI=~}JTU#K5ko{5*il$eWcOm$s*W+Qo2yPnU zEW0)F917(M*=D|Y3ynRv`9dUjUoUxv<2oT+*teOWK8GFbH|xwl#K?JPoXt}+Tqhke zI$NouUDcATM(f14Xf7EBX96Z$UR%RO^tLIz?_F zNp3j5)G}15@TAsZUoK-1|5v6f{gQ`@hY9Mpi>o~yQu)lm4MJ>Ji)($p3Wspri)); + //animate_spri((player[0].ent->spri), &gvar); modexShowPage(mv[0].page);//!(gvar.video.p) shinku_fps_indicator_page = 0; // we're on page 1 now, shinku(). follow along please or it will not be visible. #ifdef FADE modexFadeOn(4, gpal); #endif - modexDrawSprite(mv[0].page, 16, 16, (player[0].data)); /*strcpy(global_temp_status_text, "press enter for the loop of zcroll\nescape to quit"); modexprint(&gvar.video.page[0], 144, 72, 1, 7, 0, global_temp_status_text); while(!IN_KeyDown(sc_Enter)){ if(IN_KeyDown(sc_Escape)) goto quit; } IN_UserInput(1,1);*///wwww @@ -181,13 +180,9 @@ void main(int argc, char *argv[]) if(IN_KeyDown(25)){ modexpdump(mv[0].page); IN_UserInput(1,1); } //p -#ifdef FADE - if(IN_KeyDown(24)){ modexPalUpdate0(gpal); paloffset=0; modexpdump(mv[0].page); IN_UserInput(1,1); } //p - if(IN_KeyDown(22)){ - printf("2paloffset = %d\n", paloffset/3); - IN_UserInput(1,1); - } -#endif + + if(IN_KeyDown(24)){ modexPalUpdate0(gpal); /*paloffset=0;*/ modexpdump(mv[0].page); IN_UserInput(1,1); } //o + if(IN_KeyDown(22)){ modexPalUpdate0(gpal); } //u //pan switch if(IN_KeyDown(88)){panswitch=!panswitch; IN_UserInput(1,1);} //f12 @@ -208,7 +203,17 @@ void main(int argc, char *argv[]) if(IN_KeyDown(66)) //f8 { // modexDrawSprite(mv[0].page, 16, 16, &p); - modexDrawSprite(mv[0].page, 32+72, 16, (player[0].data)); +// modexDrawSprite(mv[0].page, 32+72, 16, (player[0].data)); + switch(i) + { + case 11: + i=0; + player[0].ent->spri->x = 0; + default: + i++; + player[0].ent->spri->delay = 1; animate_spri((player[0].ent->spri), &gvar); player[0].ent->spri->x += 20; + break; + } } //TODO fmemtest into page /*if(IN_KeyDown(4+1)) //4 -- 2.39.5