コード例 #1
0
ファイル: Chodao.java プロジェクト: pes6pro/visva
 public void updateDS(int delayTime) {
   if (stateDS == 1) {
     if (_screen.itemUi.idItem1 == 0 && _screen.itemUi.state == 1 && (state == 1 || state == 2)) {
       if (!isLeft) {
         if (x >= xStartRight && x <= xEndRight + deltaDS) {
           stateDS = 2;
           timeStep *= mulStep;
           ani.TIME_PER_FRAME *= mulFPS;
         }
       } else if (isLeft) {
         if (x <= xEndLeft && x >= xStartLeft - deltaDS) {
           stateDS = 2;
           timeStep *= mulStep;
           ani.TIME_PER_FRAME *= mulFPS;
         }
       }
     }
   } else if (stateDS == 2) {
     if ((_screen.itemUi.idItem1 == 0 && _screen.itemUi.state != 1) || state == 3) {
       if (state == 1) {
         stateDS = 1;
         timeStep = TIME_STEP;
         ani.TIME_PER_FRAME = timeFrameNor;
       } else if (state == 2) {
         stateDS = 1;
         timeStep = TIME_STEP;
         ani.TIME_PER_FRAME = timeFrameAttack;
       } else if (state == 3) {
         stateDS = 1;
         timeStep = TIME_STEP;
         ani.TIME_PER_FRAME = timeFrameKick;
       }
     }
   }
 }
コード例 #2
0
ファイル: Bua.java プロジェクト: pes6pro/visva
 public void updateDS(int delayTime) {
   if (stateDS == 1) {
     if (_screen.itemUi.idItem1 == 0 && _screen.itemUi.state == 1 && state == 1) {
       if (type == 1 || type == 4) {
         if (y >= yStartConner && y <= yEndConner + deltaDS) {
           stateDS = 2;
           timeStep *= mulStep;
           ani.TIME_PER_FRAME *= mulFPS;
         }
       } else if (type == 2) {
         if (x >= xStartRight && x <= xEndRight + deltaDS) {
           stateDS = 2;
           timeStep *= mulStep;
           ani.TIME_PER_FRAME *= mulFPS;
         }
       } else if (type == 5) {
         if (x <= xEndLeft && x >= xStartLeft - deltaDS) {
           stateDS = 2;
           timeStep *= mulStep;
           ani.TIME_PER_FRAME *= mulFPS;
         }
       }
     }
   } else if (stateDS == 2) {
     if ((_screen.itemUi.idItem1 == 0 && _screen.itemUi.state != 1) || state == 2) {
       if (state == 1) {
         stateDS = 1;
         timeStep = TIME_STEP;
         ani.TIME_PER_FRAME = timeFrameNor;
       } else {
         stateDS = 1;
         timeStep = TIME_STEP;
         ani.TIME_PER_FRAME = timeFrameKick;
       }
     }
   }
 }