X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_in.c;h=3c16d32a24f8f4db202d9f884631c9be56155250;hb=6b164d70a5927e8955b1e0869c4ad32d63410d00;hp=1863e2ad2c98636f5a59957933637aeb529fe4b8;hpb=0279dd54ae3dfbaede4a10eb65cdacc9c24ba610;p=16.git diff --git a/src/lib/16_in.c b/src/lib/16_in.c index 1863e2ad..3c16d32a 100755 --- a/src/lib/16_in.c +++ b/src/lib/16_in.c @@ -38,7 +38,7 @@ #include "src/lib/16_in.h" -byte testkeyin=0,testcontrolnoisy=0,testctrltype=0; +boolean testkeyin=0,testcontrolnoisy=0,testctrltype=0; /* ============================================================================= @@ -235,7 +235,7 @@ static boolean special; if (INL_KeyHook && !special) INL_KeyHook(); //#ifdef TESTKEYIN - if(testkeyin > 0) printf("%c [0x%x %u] %u\n", c, k, k, inpu.Keyboard[k]); + if(testkeyin > 0) printf("%c %u [0x%x %u] %u\n", c, c, k, k, inpu.Keyboard[k]); //endif outp(0x20,0x20); } @@ -1282,3 +1282,22 @@ boolean IN_qb(byte kee) if(inpu.Keyboard[kee]==true) return 1; else return 0; } + +//init player! +void IN_initplayer(player_t *player, word pn) +{ + player[pn].x = player[pn].tx*TILEWH; + player[pn].y = player[pn].ty*TILEWH; + player[pn].triggerx = player[pn].tx; + player[pn].triggery = player[pn].ty+1; +/* player[0].info.x = player[0].tx; + player[0].info.xaxis = player[0].tx*TILEWH; + player[0].info.y = player[0].ty; + player[0].info.yaxis = player[0].ty*TILEWH;*/ + player[pn].q=1; + player[pn].d=2; + player[pn].hp=4; + player[pn].speed=4; + player[pn].persist_aniframe=0; + player[pn].spt=(TILEWH/(player[pn].speed)); //speed per tile wwww +}