⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 yosamabin_n60.java

📁 拉登采矿
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
        }
        this.jumpy = (this.yosamay - this.jumpindex[this.motion][3]);
      }
      else if (this.janim == 2)
      {
        if (this.dir == 1)
        {
          paramGraphics.drawImage(this.jump[3], this.yosamax - 17, this.yosamay - this.jumpindex[this.motion][2], 0x10 | 0x4);
          this.jumpx = (this.yosamax - 17);
        }
        else
        {
          paramDirectGraphics.drawImage(this.jump[3], this.yosamax, this.yosamay - this.jumpindex[this.motion][2], 0x10 | 0x4, 8192);
          this.jumpx = this.yosamax;
        }
        this.jumpy = (this.yosamay - this.jumpindex[this.motion][3]);
      }
      else if ((this.janim == 3) || (this.janim == 4) || (this.janim == 5))
      {
        if (this.dir == 1)
        {
          paramGraphics.drawImage(this.jump[4], this.yosamax - 20, this.yosamay - this.jumpindex[this.motion][3], 0x10 | 0x4);
          this.jumpx = (this.yosamax - 20);
        }
        else
        {
          paramDirectGraphics.drawImage(this.jump[4], this.yosamax, this.yosamay - this.jumpindex[this.motion][3], 0x10 | 0x4, 8192);
          this.jumpx = this.yosamax;
        }
        this.jumpy = (this.yosamay - this.jumpindex[this.motion][3]);
      }
      else if (this.janim == 6)
      {
        if (this.dir == 1)
        {
          paramGraphics.drawImage(this.jump[5], this.yosamax - 15, this.yosamay - this.jumpindex[this.motion][4], 0x10 | 0x4);
          this.jumpx = (this.yosamax - 15);
        }
        else
        {
          paramDirectGraphics.drawImage(this.jump[5], this.yosamax, this.yosamay - this.jumpindex[this.motion][4], 0x10 | 0x4, 8192);
          this.jumpx = this.yosamax;
        }
        this.jumpy = (this.yosamay - this.jumpindex[this.motion][3]);
      }
      this.janim += 1;
      if (this.janim >= 8)
      {
        this.up = false;
        this.janim = 0;
      }
      if ((this.bullet1x > this.jumpx) && (this.bullet1x < this.jumpx + this.jump[4].getWidth()) && (this.bullet1y > this.jumpy) && (this.bullet1y < this.jumpy + this.jump[4].getHeight()))
        this.hit = true;
      if ((this.bullet2x > this.jumpx) && (this.bullet2x < this.jumpx + this.jump[4].getWidth()) && (this.bullet2y > this.jumpy) && (this.bullet2y < this.jumpy + this.jump[4].getHeight()))
        this.hit = true;
      if ((this.parax > this.jumpx) && (this.parax < this.jumpx + this.jump[4].getWidth()) && (this.paray + this.para.getHeight() > this.jumpy) && (this.paray + this.para.getHeight() - 18 < this.jumpy + this.jump[4].getHeight()))
        this.hit = (this.explosion = 1);
    }
    else if (this.down)
    {
      paramGraphics.translate(0, 6);
      if ((this.danim < 1) || (this.danim == 10))
      {
        if (this.dir == 1)
          paramGraphics.drawImage(this.jump[1], this.yosamax, this.yosamay, 0x10 | 0x4);
        else
          paramDirectGraphics.drawImage(this.jump[1], this.yosamax, this.yosamay, 0x10 | 0x4, 8192);
        this.duckx = this.yosamax;
        this.ducky = this.yosamay;
      }
      else if (this.danim == 1)
      {
        if (this.dir == 1)
        {
          paramGraphics.drawImage(this.bend[2], this.yosamax, this.yosamay + 2, 0x10 | 0x4);
          this.duckx = this.yosamax;
        }
        else
        {
          paramDirectGraphics.drawImage(this.bend[2], this.yosamax - this.bend[2].getWidth() / 2, this.yosamay + 2, 0x10 | 0x4, 8192);
          this.duckx = (this.yosamax - this.bend[2].getWidth() / 2);
        }
        this.ducky = (this.yosamay + 5);
      }
      else if (this.danim == 2)
      {
        if (this.dir == 1)
        {
          paramGraphics.drawImage(this.bend[3], this.yosamax + 1, this.yosamay + 2, 0x10 | 0x4);
          this.duckx = (this.yosamax + 1);
        }
        else
        {
          paramDirectGraphics.drawImage(this.bend[3], this.yosamax - this.bend[3].getWidth() / 2 - 1, this.yosamay + 2, 0x10 | 0x4, 8192);
          this.duckx = (this.yosamax - this.bend[3].getWidth() / 2 - 1);
        }
        this.ducky = (this.yosamay + 10);
      }
      else if (this.danim == 3)
      {
        if (this.dir == 1)
        {
          paramGraphics.drawImage(this.bend[4], this.yosamax - 1, this.yosamay + 6, 0x10 | 0x4);
          this.duckx = (this.yosamax - 1);
        }
        else
        {
          paramDirectGraphics.drawImage(this.bend[4], this.yosamax - this.bend[4].getWidth() / 2 - 1, this.yosamay + 6, 0x10 | 0x4, 8192);
          this.duckx = (this.yosamax - this.bend[4].getWidth() / 2 - 1);
        }
        this.ducky = (this.yosamay + 10);
      }
      else if (this.danim == 4)
      {
        if (this.dir == 1)
        {
          paramGraphics.drawImage(this.bend[5], this.yosamax + 7, this.yosamay + 10, 0x10 | 0x4);
          this.duckx = (this.yosamax + 7);
        }
        else
        {
          paramDirectGraphics.drawImage(this.bend[5], this.yosamax - this.bend[5].getWidth() / 2 - 7, this.yosamay + 10, 0x10 | 0x4, 8192);
          this.duckx = (this.yosamax - this.bend[5].getWidth() / 2 - 7);
        }
        this.ducky = (this.yosamay + 10);
      }
      else if ((this.danim == 5) || (this.danim == 6) || (this.danim == 7))
      {
        if (this.dir == 1)
        {
          paramGraphics.drawImage(this.bend[6], this.yosamax + 7, this.yosamay + 15, 0x10 | 0x4);
          this.duckx = (this.yosamax + 7);
        }
        else
        {
          paramDirectGraphics.drawImage(this.bend[6], this.yosamax - this.bend[6].getWidth() / 2 - 10, this.yosamay + 15, 0x10 | 0x4, 8192);
          this.duckx = (this.yosamax - this.bend[6].getWidth() / 2 - 10);
        }
        this.ducky = (this.yosamay + 20);
      }
      else if (this.danim == 8)
      {
        if (this.dir == 1)
        {
          paramGraphics.drawImage(this.bend[7], this.yosamax + 2, this.yosamay + 5, 0x10 | 0x4);
          this.duckx = (this.yosamax + 2);
        }
        else
        {
          paramDirectGraphics.drawImage(this.bend[7], this.yosamax - this.bend[7].getWidth() / 2 - 2, this.yosamay + 5, 0x10 | 0x4, 8192);
          this.duckx = (this.yosamax - this.bend[7].getWidth() / 2 - 2);
        }
        this.ducky = (this.yosamay + 15);
      }
      else if (this.danim == 9)
      {
        if (this.dir == 1)
          paramGraphics.drawImage(this.bend[8], this.yosamax, this.yosamay, 0x10 | 0x4);
        else
          paramDirectGraphics.drawImage(this.bend[8], this.yosamax, this.yosamay, 0x10 | 0x4, 8192);
        this.duckx = this.yosamax;
        this.ducky = (this.yosamay - 10);
      }
      this.danim += 1;
      if (this.danim == 11)
      {
        this.down = false;
        this.danim = 0;
      }
      paramGraphics.translate(0, -6);
      if ((this.bullet1x > this.duckx) && (this.bullet1x < this.duckx + this.bend[5].getWidth()) && (this.bullet1y > this.ducky) && (this.bullet1y < 205))
        this.hit = true;
      if ((this.bullet2x > this.duckx) && (this.bullet2x < this.duckx + this.bend[5].getWidth()) && (this.bullet2y > this.ducky) && (this.bullet2y < 205))
        this.hit = true;
      if ((this.parax > this.duckx) && (this.parax < this.duckx + this.bend[5].getWidth()) && (this.paray + this.para.getHeight() > this.ducky) && (this.paray + this.para.getHeight() - 18 < 205))
        this.hit = (this.explosion = 1);
    }
    else if (this.left)
    {
      this.dir = 1;
      paramGraphics.translate(0, 6);
      if ((this.wanim < 1) || (this.wanim == 8))
        paramGraphics.drawImage(this.walk[1], this.yosamax - 4, this.yosamay, 0x10 | 0x4);
      else if ((this.wanim == 1) || (this.wanim == 7))
        paramGraphics.drawImage(this.walk[2], this.yosamax, this.yosamay - 1, 0x10 | 0x4);
      else if ((this.wanim == 2) || (this.wanim == 6))
        paramGraphics.drawImage(this.walk[3], this.yosamax, this.yosamay - 3, 0x10 | 0x4);
      else if ((this.wanim == 3) || (this.wanim == 5))
        paramGraphics.drawImage(this.walk[4], this.yosamax, this.yosamay - 1, 0x10 | 0x4);
      else if (this.wanim == 4)
        paramGraphics.drawImage(this.walk[5], this.yosamax, this.yosamay, 0x10 | 0x4);
      paramGraphics.translate(0, -6);
      if (this.yosamax < 24)
        this.yosamax = 24;
      this.wanim += 1;
      this.yosamax -= this.motion;
      if (this.wanim == 9)
        this.wanim = 0;
      if ((this.bullet1x > this.yosamax) && (this.bullet1x < this.yosamax + this.stand[1].getWidth()) && (this.bullet1y > this.yosamay) && (this.bullet1y < this.yosamay + this.stand[1].getHeight() + this.stand[4].getHeight()))
        this.hit = true;
      if ((this.bullet2x > this.yosamax) && (this.bullet2x < this.yosamax + this.stand[1].getWidth()) && (this.bullet2y > this.yosamay) && (this.bullet2y < this.yosamay + this.stand[1].getHeight() + this.stand[4].getHeight()))
        this.hit = true;
      if ((this.parax > this.yosamax) && (this.parax < this.yosamax + this.stand[1].getWidth()) && (this.paray + this.para.getHeight() > this.yosamay) && (this.paray + this.para.getHeight() - 18 < this.yosamay + this.stand[1].getHeight() + this.stand[4].getHeight()))
        this.hit = (this.explosion = 1);
      if ((this.gcounter % 100 == 0) && (this.weight >= 100))
        this.dropsanim = 1;
    }
    else if (this.right)
    {
      this.dir = 2;
      paramGraphics.translate(0, 6);
      if ((this.wanim < 1) || (this.wanim == 8))
        paramDirectGraphics.drawImage(this.walk[1], this.yosamax, this.yosamay, 0x10 | 0x4, 8192);
      else if ((this.wanim == 1) || (this.wanim == 7))
        paramDirectGraphics.drawImage(this.walk[2], this.yosamax, this.yosamay - 1, 0x10 | 0x4, 8192);
      else if ((this.wanim == 2) || (this.wanim == 6))
        paramDirectGraphics.drawImage(this.walk[3], this.yosamax, this.yosamay - 3, 0x10 | 0x4, 8192);
      else if ((this.wanim == 3) || (this.wanim == 5))
        paramDirectGraphics.drawImage(this.walk[4], this.yosamax, this.yosamay - 1, 0x10 | 0x4, 8192);
      else if (this.wanim == 4)
        paramDirectGraphics.drawImage(this.walk[5], this.yosamax - 8, this.yosamay, 0x10 | 0x4, 8192);
      paramGraphics.translate(0, -6);
      if ((!(this.levelchanged)) && (this.yosamax >= 124))
        this.yosamax = 124;
      this.yosamax += this.motion;
      this.wanim += 1;
      if (this.wanim == 9)
        this.wanim = 0;
      if ((this.bullet1x > this.yosamax) && (this.bullet1x < this.yosamax + this.stand[1].getWidth()) && (this.bullet1y > this.yosamay) && (this.bullet1y < this.yosamay + this.stand[1].getHeight() + this.stand[4].getHeight()))
        this.hit = true;
      if ((this.bullet2x > this.yosamax) && (this.bullet2x < this.yosamax + this.stand[1].getWidth()) && (this.bullet2y > this.yosamay) && (this.bullet2y < this.yosamay + this.stand[1].getHeight() + this.stand[4].getHeight()))
        this.hit = true;
      if ((this.parax > this.yosamax) && (this.parax < this.yosamax + this.stand[1].getWidth()) && (this.paray + this.para.getHeight() > this.yosamay) && (this.paray + this.para.getHeight() - 18 < this.yosamay + this.stand[1].getHeight() + this.stand[4].getHeight()))
        this.hit = (this.explosion = 1);
      if ((this.gcounter % 100 == 0) && (this.weight >= 100))
        this.dropsanim = 1;
    }
    else
    {
      if ((this.sanim < 0) || ((this.sanim >= 10) && (this.sanim < 16)))
      {
        paramGraphics.drawImage(this.stand[1], this.yosamax, this.yosamay, 0x10 | 0x4);
        paramGraphics.drawImage(this.stand[2], this.yosamax - 5, this.yosamay + 28, 0x10 | 0x4);
        paramGraphics.drawImage(this.stand[3], this.yosamax + 22, this.yosamay + 28, 0x10 | 0x4);
        paramGraphics.drawImage(this.stand[4], this.yosamax - 5, this.yosamay + 46, 0x10 | 0x4);
        paramGraphics.drawImage(this.stand[5], this.yosamax + 20, this.yosamay + 46, 0x10 | 0x4);
      }
      else if ((this.sanim >= 0) && (this.sanim < 5))
      {
        if (this.sanim == 4)
          paramGraphics.drawImage(this.stand[6], this.yosamax, this.yosamay + this.sanim, 0x10 | 0x4);
        else
          paramGraphics.drawImage(this.stand[1], this.yosamax, this.yosamay + this.sanim, 0x10 | 0x4);
        paramGraphics.drawImage(this.stand[2], this.yosamax - 5 + this.sanim / 2, this.yosamay + 28 - this.sanim % 3, 0x10 | 0x4);
        paramGraphics.drawImage(this.stand[3], this.yosamax + 22, this.yosamay + 28 - this.sanim / 2, 0x10 | 0x4);
        paramGraphics.drawImage(this.stand[4], this.yosamax - 5, this.yosamay + 46, 0x10 | 0x4);
        paramGraphics.drawImage(this.stand[5], this.yosamax + 20, this.yosamay + 46, 0x10 | 0x4);
      }
      else if ((this.sanim >= 5) && (this.sanim < 10))
      {
        if ((this.sanim == 5) || (this.sanim == 6))
        {
          paramGraphics.drawImage(this.stand[6], this.yosamax, this.yosamay + 5 - this.sanim - 5, 0x10 | 0x4);
          paramGraphics.drawImage(this.stand[7], this.yosamax + 20, this.yosamay + 46, 0x10 | 0x4);
        }
        else
        {
          paramGraphics.drawImage(this.stand[1], this.yosamax, this.yosamay + 5 - this.sanim - 5, 0x10 | 0x4);
          paramGraphics.drawImage(this.stand[5], this.yosamax + 20, this.yosamay + 46, 0x10 | 0x4);
        }
        paramGraphics.drawImage(this.stand[2], this.yosamax - 2 - (this.sanim - 5) / 2, this.yosamay + 24 + this.sanim - 5, 0x10 | 0x4);
        paramGraphics.drawImage(this.stand[3], this.yosamax + 22, this.yosamay + 26 + (this.sanim - 5) / 2, 0x10 | 0x4);
        paramGraphics.drawImage(this.stand[4], this.yosamax - 5, this.yosamay + 46, 0x10 | 0x4);
      }
      else if ((this.sanim >= 16) && (this.sanim < 21))
      {
        paramGraphics.drawImage(this.standbr[1], this.yosamax, this.yosamay, 0x10 | 0x4);
        if (this.sanim >= 19)
        {
          paramGraphics.drawImage(this.standbr[5], this.yosamax - 5, this.yosamay + 28 - this.sanim % 5, 0x10 | 0x4);
        }
        else
        {
          paramGraphics.drawImage(this.standbr[2], this.yosamax - 5, this.yosamay + 28 - this.sanim % 5, 0x10 | 0x4);
          paramGraphics.drawImage(this.standbr[3], this.yosamax + 22, this.yosamay + 28 - this.sanim % 5, 0x10 | 0x4);
        }
        paramGraphics.drawImage(this.standbr[4], this.yosamax - 2, this.yosamay + 46, 0x10 | 0x4);
      }
      else if ((this.sanim >= 21) && (this.sanim < 26))
      {
        if (this.sanim < 25)
        {
          paramGraphics.drawImage(this.standbr[1], this.yosamax + this.sanim % 5, this.yosamay - this.sanim % 5, 0x10 | 0x4);
          paramGraphics.drawImage(this.standbr[5], this.yosamax - 5, this.yosamay + 23, 0x10 | 0x4);
          paramGraphics.drawImage(this.standbr[(this.sanim % 5 + 5)], this.yosamax - 2, this.yosamay + 46 - this.sanim % 5, 0x10 | 0x4);
        }
        else
        {
          paramGraphics.drawImage(this.standbr[1], this.yosamax + 5, this.yosamay - 5, 0x10 | 0x4);
          paramGraphics.drawImage(this.standbr[5], this.yosamax - 5, this.yosamay + 23, 0x10 | 0x4);
          paramGraphics.drawImage(this.standbr[9], this.yosamax - 2, this.yosamay + 46 - 5, 0x10 | 0x4);
        }
      }
      else if ((this.sanim >= 26) && (this.sanim < 31))
      {
        if (this.sanim < 30)
        {
          paramGraphics.drawImage(this.standbr[1], this.yosamax + 5 - this.sanim % 5, this.yosamay - 5 + this.sanim % 5, 0x10 | 0x4);
          paramGraphics.drawImage(this.standbr[5], this.yosamax - 5, this.yosamay + 23, 0x10 | 0x4);
          paramGraphics.drawImage(this.standbr[(10 - this.sanim % 5)], this.yosamax - 2, this.yosamay + 46 - 5 + this.sanim % 5, 0x10 | 0x4);
        }
        else
        {
          paramGraphics.drawImage(this.standbr[1], this.yosamax, this.yosamay, 0x10 | 0x4);
          paramGraphics.drawImage(this.standbr[5], this.yosamax - 5, this.yosamay + 23, 0x10 | 0x4);
          paramGraphics.drawImage(this.standbr[4], this.yosamax - 2, this.yosamay + 46, 0x10 | 0x4);
        }
      }
      else if ((this.sanim >= 31) && (this.sanim < 36))
      {
        if (this.sanim < 35)
        {
          paramGraphics.drawImage(this.standbr[1], this.yosamax - this.sanim % 5, this.yosamay - this.sanim % 5, 0x10 | 0x4);
          paramGraphics.drawImage(this.standbr[5], this.yosamax - 5, this.yosamay + 23, 0x10 | 0x4);
          paramGraphics.drawImage(this.standbr[(this.sanim % 5 + 5)], this.yosamax - 2, this.yosamay + 46 - this.sanim % 5, 0x10 | 0x4);
        }
        else
        {
          paramGraphics.drawImage(this.standbr[1], this.yosamax - 5, this.yosamay - 5, 0x10 | 0x4);
          paramGraphics.drawImage(this.standbr[5], this.yosamax - 5, this.yosamay + 23, 0x10 | 0x4);
          paramGraphics.drawImage(this.standbr[9], this.yosamax - 2, this.yosamay + 46 - 5, 0x10 | 0x4);
        }
      }
      else if ((this.sanim >= 36) && (this.sanim < 41))
      {
        if (this.sanim < 40)
        {
          paramGraphics.drawImage(this.standbr[1], this.yosamax - 5 + this.sanim % 5, this.yosamay - 5 + this.sanim % 5, 0x10 | 0x4);
          paramGraphics.drawImage(this.standbr[5], this.yosamax - 5, this.yosamay + 23, 0x10 | 0x4);
          paramGraphics.drawImage(this.standbr[(10 - this.sanim % 5)], this.yosamax - 2, this.yosamay + 46 - 5 + this.sanim % 5, 0x10 | 0x4);
        }
        else
        {
          paramGraphics.drawImage(this.standbr[1], this.yosamax, this.yosamay, 0x10 | 0x4);
          paramGraphics.drawImage(this.standbr[5], this.yosamax - 5, this.yosamay + 23, 0x10 | 0x4);
          paramGraphics.drawImage(this.standbr[4], this.yosamax - 2, this.yosamay + 46, 0x10 | 0x4);
        }
      }
      this.sanim += 1;
      if (this.sanim == 41)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -