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

📄 sevenyearitch$gamecanvas.java

📁 一款类似于扔砖头的游戏
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
          this.this$0.usry5 = (5 * this.this$0.index_user_y - 23);
          this.this$0.usry6 = (6 * this.this$0.index_user_y - 23);
          this.this$0.usry7 = (7 * this.this$0.index_user_y - 23);
          this.this$0.usry8 = (8 * this.this$0.index_user_y - 23);
          if ((this.this$0.userth >= 0) && (this.this$0.userth < 4))
          {
            paramGraphics.drawImage(this.this$0.choose[this.this$0.user][0], 400, 400, 20);
            paramGraphics.drawImage(this.this$0.choose[this.this$0.user][2], this.this$0.temposx, this.this$0.temposy, 20);
          }
          else if ((this.this$0.userth >= 4) && (this.this$0.userth < 6))
          {
            paramGraphics.drawImage(this.this$0.choose[this.this$0.user][3], this.this$0.temposx, this.this$0.temposy, 20);
            paramGraphics.drawImage(this.this$0.choose[this.this$0.user][4], this.this$0.temposx, this.this$0.temposy, 20);
          }
          this.this$0.usercnt += 1;
          if (this.this$0.user == 1)
            if (this.this$0.vessu == 0)
            {
              this.this$0.ux = (this.this$0.temposx + 41);
              this.this$0.uy = this.this$0.temposy;
            }
            else if (this.this$0.vessu == 1)
            {
              this.this$0.ux = (this.this$0.temposx + 53);
              this.this$0.uy = (this.this$0.temposy - 2);
            }
            else if (this.this$0.vessu == 2)
            {
              this.this$0.ux = (this.this$0.temposx + 49);
              this.this$0.uy = (this.this$0.temposy - 1);
            }
            else if (this.this$0.vessu == 3)
            {
              this.this$0.ux = (this.this$0.temposx + 39);
              this.this$0.uy = (this.this$0.temposy - 10);
            }
          else if (this.this$0.user == 0)
            if (this.this$0.vessu == 0)
            {
              this.this$0.ux = (this.this$0.temposx + 43);
              this.this$0.uy = (this.this$0.temposy - 1);
            }
            else if (this.this$0.vessu == 1)
            {
              this.this$0.ux = (this.this$0.temposx + 53);
              this.this$0.uy = (this.this$0.temposy - 2);
            }
            else if (this.this$0.vessu == 2)
            {
              this.this$0.ux = (this.this$0.temposx + 53);
              this.this$0.uy = (this.this$0.temposy - 1);
            }
            else if (this.this$0.vessu == 3)
            {
              this.this$0.ux = (this.this$0.temposx + 44);
              this.this$0.uy = (this.this$0.temposy - 16);
            }
          if (this.this$0.usercnt < 3)
            paramGraphics.drawImage(this.this$0.img[this.this$0.vessu][0], this.this$0.ux, this.this$0.uy, 20);
          else if ((this.this$0.usercnt >= 3) && (this.this$0.usercnt < 5))
            paramGraphics.drawImage(this.this$0.img[this.this$0.vessu][1], this.this$0.temposx + this.this$0.usrx2 + 80, this.this$0.temposy - this.this$0.usry2, 20);
          else if ((this.this$0.usercnt >= 5) && (this.this$0.usercnt < 6))
            paramGraphics.drawImage(this.this$0.img[this.this$0.vessu][1], this.this$0.temposx + this.this$0.usrx3 + 80, this.this$0.temposy - this.this$0.usry3, 20);
          else if ((this.this$0.usercnt >= 6) && (this.this$0.usercnt < 7))
            paramGraphics.drawImage(this.this$0.img[this.this$0.vessu][2], this.this$0.temposx + this.this$0.usrx4 + 80, this.this$0.temposy - this.this$0.usry4, 20);
          else if ((this.this$0.usercnt >= 7) && (this.this$0.usercnt < 8))
            paramGraphics.drawImage(this.this$0.img[this.this$0.vessu][2], this.this$0.temposx + this.this$0.usrx5 + 80, this.this$0.temposy - this.this$0.usry5, 20);
          else if ((this.this$0.usercnt >= 8) && (this.this$0.usercnt < 9))
            paramGraphics.drawImage(this.this$0.img[this.this$0.vessu][3], this.this$0.temposx + this.this$0.usrx6 + 80, this.this$0.temposy - this.this$0.usry6, 20);
          else if ((this.this$0.usercnt >= 9) && (this.this$0.usercnt < 10))
            paramGraphics.drawImage(this.this$0.img[this.this$0.vessu][3], this.this$0.temposx + this.this$0.usrx7 + 80, this.this$0.temposy - this.this$0.usry7, 20);
          else if ((this.this$0.usercnt >= 11) && (this.this$0.usercnt < 12))
            paramGraphics.drawImage(this.this$0.img[this.this$0.vessu][3], this.this$0.temposx + this.this$0.usrx8 + 80, this.this$0.temposy - this.this$0.usry8, 20);
          if (this.this$0.userth < 5)
          {
            this.this$0.down = 0;
            this.this$0.user_anim = 0;
            this.this$0.animflag = 0;
          }
          else if (this.this$0.userth >= 5)
          {
            this.this$0.user_anim = 1;
            this.this$0.animflag = 0;
          }
          if (this.this$0.usercnt < 11)
          {
            this.this$0.tar_anim = 0;
            this.this$0.animflag = 1;
          }
          else if (this.this$0.usercnt == 12)
          {
            this.this$0.tar_anim = 2;
            this.this$0.animflag = 0;
          }
          if (this.this$0.userth == 11)
          {
            this.this$0.animflag = 0;
            this.this$0.vessu += 1;
            this.this$0.rem -= 1;
            this.this$0.fircount += 1;
            this.this$0.rand_g = 1;
            this.this$0.userth = 0;
            this.this$0.usercnt = 0;
            this.this$0.user_anim = 1;
            this.this$0.hit = 0;
            this.this$0.dncnt = 0;
            this.this$0.items -= 1;
          }
          if (this.this$0.usercnt == 11)
          {
            this.this$0.animflag = 0;
            this.this$0.index_user_x = 0;
            this.this$0.index_user_y = 0;
            this.this$0.tar_anim = 2;
          }
          if (this.this$0.vessu == 4)
            this.this$0.vessu = 0;
        }
        if (this.this$0.hit == 3)
        {
          this.this$0.hit = 1;
          this.this$0.animflag = 0;
        }
        if (this.this$0.user_blink == 1)
          if (this.this$0.animflag == 1)
            if (this.this$0.variable == 0)
            {
              this.this$0.user_anim = 0;
              this.this$0.abb += 1;
              if (this.this$0.abb % 4 == 0)
                paramGraphics.drawImage(this.this$0.choose[this.this$0.user][0], 200, 200, 20);
              else
                paramGraphics.drawImage(this.this$0.choose[this.this$0.user][0], this.this$0.temposx, this.this$0.temposy, 20);
              if (this.this$0.abb == 8)
              {
                this.this$0.user_anim = 1;
                this.this$0.user_blink = 0;
              }
            }
            else if (this.this$0.variable == 1)
            {
              this.this$0.user_anim = 0;
              this.this$0.abb += 1;
              if (this.this$0.abb % 4 == 0)
                paramGraphics.drawImage(this.this$0.choose[this.this$0.user][2], 200, 200, 20);
              else if (this.this$0.user == 1)
                if (this.this$0.vessu == 0)
                {
                  paramGraphics.drawImage(this.this$0.choose[this.this$0.user][2], this.this$0.temposx, this.this$0.temposy, 20);
                  paramGraphics.drawImage(this.this$0.img[this.this$0.vessu][0], this.this$0.user_x + 41, this.this$0.user_y, 20);
                }
                else if (this.this$0.vessu == 1)
                {
                  paramGraphics.drawImage(this.this$0.choose[this.this$0.user][2], this.this$0.temposx, this.this$0.temposy, 20);
                  paramGraphics.drawImage(this.this$0.img[this.this$0.vessu][0], this.this$0.user_x + 53, this.this$0.user_y - 2, 20);
                }
                else if (this.this$0.vessu == 2)
                {
                  paramGraphics.drawImage(this.this$0.choose[this.this$0.user][2], this.this$0.temposx, this.this$0.temposy, 20);
                  paramGraphics.drawImage(this.this$0.img[this.this$0.vessu][0], this.this$0.user_x + 49, this.this$0.user_y - 1, 20);
                }
                else if (this.this$0.vessu == 3)
                {
                  paramGraphics.drawImage(this.this$0.choose[this.this$0.user][2], this.this$0.temposx, this.this$0.temposy, 20);
                  paramGraphics.drawImage(this.this$0.img[this.this$0.vessu][0], this.this$0.user_x + 39, this.this$0.user_y - 10, 20);
                }
              else if (this.this$0.user == 0)
                if (this.this$0.vessu == 0)
                {
                  paramGraphics.drawImage(this.this$0.choose[this.this$0.user][2], this.this$0.temposx, this.this$0.temposy, 20);
                  paramGraphics.drawImage(this.this$0.img[this.this$0.vessu][0], this.this$0.user_x + 43, this.this$0.user_y - 1, 20);
                }
                else if (this.this$0.vessu == 1)
                {
                  paramGraphics.drawImage(this.this$0.choose[this.this$0.user][2], this.this$0.temposx, this.this$0.temposy, 20);
                  paramGraphics.drawImage(this.this$0.img[this.this$0.vessu][0], this.this$0.user_x + 53, this.this$0.user_y - 2, 20);
                }
                else if (this.this$0.vessu == 2)
                {
                  paramGraphics.drawImage(this.this$0.choose[this.this$0.user][2], this.this$0.temposx, this.this$0.temposy, 20);
                  paramGraphics.drawImage(this.this$0.img[this.this$0.vessu][0], this.this$0.user_x + 53, this.this$0.user_y - 1, 20);
                }
                else if (this.this$0.vessu == 3)
                {
                  paramGraphics.drawImage(this.this$0.choose[this.this$0.user][2], this.this$0.temposx, this.this$0.temposy, 20);
                  paramGraphics.drawImage(this.this$0.img[this.this$0.vessu][0], this.this$0.user_x + 44, this.this$0.user_y - 16, 20);
                }
              if (this.this$0.abb == 8)
              {
                this.this$0.user_anim = 1;
                this.this$0.user_blink = 0;
              }
            }
          else if (this.this$0.animflag == 0)
            if (this.this$0.variable == 0)
            {
              this.this$0.user_anim = 0;
              this.this$0.abb += 1;
              if (this.this$0.abb % 4 == 0)
                paramGraphics.drawImage(this.this$0.choose[this.this$0.user][0], 200, 200, 20);
              else
                paramGraphics.drawImage(this.this$0.choose[this.this$0.user][0], this.this$0.user_x, this.this$0.user_y, 20);
              if (this.this$0.abb == 8)
              {
                this.this$0.user_anim = 1;
                this.this$0.user_blink = 0;
              }
            }
            else if (this.this$0.variable == 1)
            {
              this.this$0.user_anim = 0;
              this.this$0.abb += 1;
              if (this.this$0.abb % 4 == 0)
                paramGraphics.drawImage(this.this$0.choose[this.this$0.user][2], 200, 200, 20);
              else if (this.this$0.user == 1)
                if (this.this$0.vessu == 0)
                {
                  paramGraphics.drawImage(this.this$0.choose[this.this$0.user][2], this.this$0.user_x, this.this$0.user_y, 20);
                  paramGraphics.drawImage(this.this$0.img[this.this$0.vessu][0], this.this$0.user_x + 41, this.this$0.user_y, 20);
                }
                else if (this.this$0.vessu == 1)
                {
                  paramGraphics.drawImage(this.this$0.choose[this.this$0.user][2], this.this$0.user_x, this.this$0.user_y, 20);
                  paramGraphics.drawImage(this.this$0.img[this.this$0.vessu][0], this.this$0.user_x + 53, this.this$0.user_y - 2, 20);
                }
                else if (this.this$0.vessu == 2)
                {
                  paramGraphics.drawImage(this.this$0.choose[this.this$0.user][2], this.this$0.user_x, this.this$0.user_y, 20);
                  paramGraphics.drawImage(this.this$0.img[this.this$0.vessu][0], this.this$0.user_x + 49, this.this$0.user_y - 1, 20);
                }
                else if (this.this$0.vessu == 3)
                {
                  paramGraphics.drawImage(this.this$0.choose[this.this$0.user][2], this.this$0.user_x, this.this$0.user_y, 20);
                  paramGraphics.drawImage(this.this$0.img[this.this$0.vessu][0], this.this$0.user_x + 39, this.this$0.user_y - 10, 20);
                }
              else if (this.this$0.user == 0)
                if (this.this$0.vessu == 0)
                {
                  paramGraphics.drawImage(this.this$0.choose[this.this$0.user][2], this.this$0.user_x, this.this$0.user_y, 20);
                  paramGraphics.drawImage(this.this$0.img[this.this$0.vessu][0], this.this$0.user_x + 43, this.this$0.user_y - 1, 20);
                }
                else if (this.this$0.vessu == 1)
                {
                  paramGraphics.drawImage(this.this$0.choose[this.this$0.user][2], this.this$0.user_x, this.this$0.user_y, 20);
                  paramGraphics.drawImage(this.this$0.img[this.this$0.vessu][0], this.this$0.user_x + 53, this.this$0.user_y - 2, 20);
                }
                else if (this.this$0.vessu == 2)
                {
                  paramGraphics.drawImage(this.this$0.choose[this.this$0.user][2], this.this$0.user_x, this.this$0.user_y, 20);
                  paramGraphics.drawImage(this.this$0.img[this.this$0.vessu][0], this.this$0.user_x + 53, this.this$0.user_y - 1, 20);
                }
                else if (this.this$0.vessu == 3)
                {
                  paramGraphics.drawImage(this.this$0.choose[this.this$0.user][2], this.this$0.user_x, this.this$0.user_y, 20);
                  paramGraphics.drawImage(this.this$0.img[this.this$0.vessu][0], this.this$0.user_x + 44, this.this$0.user_y - 16, 20);
                }
              if (this.this$0.abb == 8)
              {
                this.this$0.user_anim = 1;
                this.this$0.user_blink = 0;
              }
            }
        if ((this.this$0.usercnt == 10) && (this.this$0.posx + 2 >= this.this$0.opp_x + 10) && (this.this$0.posx + 2 <= this.this$0.opp_x + 30))
        {
          this.this$0.opp_blink = 1;

⌨️ 快捷键说明

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