close

function input_scan()
{
        while (1)
        {

                if (player)
                {
                        force_x_old = player.force_x; //store old force values
                        force_y_old = player.force_y;
                        
                        player.force_x = 0; // set force to 0 until we get key input
                        player.force_y = 0;
   
                        if (key_cuu == 1)    player.force_x = 1;

                        if (key_cul == 1)      player.force_y = 1;

                        if (key_cur == 1)      player.force_y = -1;
  
                        if (key_cud == 1)     player.force_x = -1;

                        if(player.force_x != force_x_old || player.force_y != force_y_old)
                        {
                            if(connection == 2)  
                            {
                              send_skill(player.force_x,SEND_VEC); 
                            }
                        }
                   }
                  wait(1);
        }
}

---------------------------------------------------------------

waiting to handle : the jump force



arrow
arrow
    全站熱搜
    創作者介紹
    創作者 SkyChord 的頭像
    SkyChord

    No fUtUrE

    SkyChord 發表在 痞客邦 留言(0) 人氣()