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

📄 arkonwarriors.java

📁 一个横板的玛丽类游戏 有6个手机的平台
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
                            g.drawImage(R2, hx - 27 - 4, hy - 3, 20);
                            if(rt == 1)
                                act = "walk";
                            else
                                act = "stand";
                            break;

                        case 6: // '\006'
                            g.setClip(hx - 4, hy, 18, 41);
                            X -= 3;
                            g.drawImage(R1, hx - 4, hy, 20);
                            if(rt == 1)
                                act = "walk";
                            else
                                act = "stand";
                            mfr = 0;
                            break;
                        }
                        hy = hy - 2;
                    } else
                    if(act == "jump")
                        switch(mfr)
                        {
                        case 0: // '\0'
                            g.setClip(hx, hy, 18, 41);
                            g.drawImage(R1, hx, hy, 20);
                            break;

                        case 1: // '\001'
                            g.setClip(hx, hy, 25, 41);
                            X -= 5;
                            g.drawImage(R1, hx - 18, hy, 20);
                            break;

                        case 2: // '\002'
                            g.setClip(hx, hy, 18, 41);
                            X -= 5;
                            g.drawImage(R1, hx - 45, hy, 20);
                            break;

                        case 3: // '\003'
                            g.setClip(hx, hy, 13, 44);
                            X -= 5;
                            g.drawImage(R2, hx - 53, hy, 20);
                            break;

                        case 4: // '\004'
                            g.setClip(hx, hy, 13, 44);
                            g.drawImage(R2, hx - 53, hy, 20);
                            mfr = 0;
                            act = "stand";
                            break;
                        }
                    else
                    if(act == "hit")
                        switch(mfr)
                        {
                        case 0: // '\0'
                            g.setClip(hx, hy, 13, 44);
                            g.drawImage(R2, hx - 53, hy, 20);
                            g.setColor(255, 0, 0);
                            g.drawArc((hx - 10) + 10, hy + 10, 20, 20, 0, 360);
                            g.drawArc((hx - 10) + 5, hy + 5, 25, 25, 0, 360);
                            break;

                        case 1: // '\001'
                            g.setClip(hx, hy, 13, 44);
                            g.drawImage(R2, hx - 53, hy, 20);
                            alife--;
                            act = "stand";
                            mfr = 0;
                            break;
                        }
                    else
                    if(act == "att2")
                        switch(mfr)
                        {
                        case 0: // '\0'
                            g.setClip(hx, hy, 33, 42);
                            g.drawImage(R3, hx - 27, hy, 20);
                            break;

                        case 1: // '\001'
                            g.setClip(hx - 7, hy - 4, 32, 48);
                            g.drawImage(R4, hx - 82 - 7, hy - 4, 20);
                            break;

                        case 2: // '\002'
                            g.setClip(hx, hy - 4, 48, 48);
                            g.drawImage(R4, hx, hy - 4, 20);
                            if(fight == 1)
                            {
                                mov = "hit";
                                mfre = 0;
                            }
                            break;

                        case 3: // '\003'
                            g.setClip(hx, hy - 4, 48, 48);
                            g.drawImage(R4, hx, hy - 4, 20);
                            mfr = 0;
                            act = "stand";
                            break;
                        }
                    else
                    if(act == "att1")
                        switch(mfr)
                        {
                        case 0: // '\0'
                            g.setClip(hx, hy, 13, 44);
                            g.drawImage(R2, hx - 53, hy, 20);
                            break;

                        case 1: // '\001'
                            g.setClip(hx, hy - 3, 18, 41);
                            g.drawImage(R1, hx, hy - 3, 20);
                            break;

                        case 2: // '\002'
                            g.setClip(hx, hy - 6, 34, 48);
                            g.drawImage(R4, hx - 48, hy - 6, 20);
                            break;

                        case 3: // '\003'
                            g.setClip(hx, hy - 11, 37, 42);
                            g.drawImage(R3, hx - 60, hy - 11, 20);
                            if(fight == 1)
                            {
                                mov = "hit";
                                mfre = 0;
                                if(level == 1 && --go[2][eno] <= 0)
                                {
                                    mov = "die";
                                    mfre = 0;
                                    mode = 0;
                                    fight = 0;
                                }
                                if(level == 2 && --bu[2][eno] <= 0)
                                {
                                    mov = "die";
                                    mfre = 0;
                                    mode = 0;
                                    fight = 0;
                                }
                                if(level == 3 && --al[2][eno] <= 0)
                                {
                                    mov = "die";
                                    mfre = 0;
                                    mode = 0;
                                    fight = 0;
                                }
                            }
                            break;

                        case 4: // '\004'
                            g.setClip(hx, hy, 34, 48);
                            g.drawImage(R4, hx, hy - 48, 20);
                            break;

                        case 5: // '\005'
                            g.setClip(hx, hy, 18, 41);
                            g.drawImage(R1, hx, hy, 20);
                            mfr = 0;
                            act = "stand";
                            break;

                        case 6: // '\006'
                            g.setClip(hx, hy, 13, 44);
                            g.drawImage(R2, hx - 53, hy, 20);
                            mfr = 0;
                            act = "stand";
                            break;
                        }
                    else
                    if(act == "att3")
                        switch(mfr)
                        {
                        case 0: // '\0'
                            g.setClip(hx, hy, 33, 42);
                            g.drawImage(R3, hx - 26, hy, 20);
                            break;

                        case 1: // '\001'
                            g.setClip(hx - 8, hy - 4, 48, 48);
                            g.drawImage(R4, hx - 8, hy - 4, 20);
                            g.setClip(0, 0, w, h);
                            g.setColor(16, 106, 2);
                            g.fillRect(60, 92, 6, 5);
                            g.setColor(20, 141, 2);
                            g.fillRect(60, 93, 6, 3);
                            g.setColor(30, 255, 0);
                            g.fillRect(60, 94, 6, 1);
                            break;

                        case 2: // '\002'
                            g.setClip(hx - 8, hy - 4, 48, 48);
                            g.drawImage(R4, hx - 8, hy - 4, 20);
                            g.setClip(0, 0, w, h);
                            g.setColor(16, 106, 2);
                            g.fillRect(70, 92, 8, 5);
                            g.setColor(20, 141, 2);
                            g.fillRect(70, 93, 8, 3);
                            g.setColor(30, 255, 0);
                            g.fillRect(70, 94, 8, 1);
                            break;

                        case 3: // '\003'
                            g.setClip(hx - 8, hy - 4, 48, 48);
                            g.drawImage(R4, hx - 8, hy - 4, 20);
                            g.setColor(16, 106, 2);
                            g.fillRect(70, 92, 25, 5);
                            g.setColor(20, 141, 2);
                            g.fillRect(70, 93, 25, 3);
                            g.setColor(30, 255, 0);
                            g.fillRect(70, 94, 25, 1);
                            break;

                        case 4: // '\004'
                            g.setClip(hx - 8, hy - 4, 48, 48);
                            g.drawImage(R4, hx - 8, hy - 4, 20);
                            g.setColor(16, 106, 2);
                            g.setColor(100, 0, 255);
                            g.fillRect(70, 92, 37, 5);
                            g.setColor(175, 0, 255);
                            g.fillRect(70, 93, 37, 3);
                            g.setColor(30, 255, 0);
                            g.fillRect(70, 94, 37, 1);
                            nof--;
                            if(level == 1)
                            {
                                go[2][eno] = 1;
                                mov = "hit";
                                mfre = 1;
                                mode = 0;
                                fight = 0;
                                po[2] = -X + 50;
                            }
                            if(level == 2)
                            {
                                bu[2][eno] = 1;
                                mov = "hit";
                                mfre = 1;
                                mode = 0;
                                fight = 0;
                                po[2] = -X + 50;
                            }
                            if(level == 3 && --al[2][eno] <= 0)
                            {
                                mov = "hit";
                                mfre = 1;
                                mode = 0;
                                fight = 0;
                            }
                            mfr = 0;
                            act = "stand";
                            break;
                        }
                    else
                    if(act == "att5")
                        switch(mfr)
                        {
                        default:
                            break;

                        case 0: // '\0'
                            g.setClip(hx, hy, 33, 42);
                            g.drawImage(R3, hx - 26, hy, 20);
                            break;

                        case 1: // '\001'
                            g.setClip(hx - 8, hy - 4, 48, 48);
                            g.drawImage(R4, hx - 8, hy - 4, 20);
                            g.setClip(0, 0, w, h);
                            g.setColor(100, 0, 255);
                            g.fillRect(60, 92, 6, 5);
                            g.setColor(175, 0, 255);
                            g.fillRect(60, 93, 6, 3);
                            g.setColor(242, 124, 255);
                            g.fillRect(60, 94, 6, 1);
                            break;

                        case 2: // '\002'
                            g.setClip(hx - 8, hy - 4, 48, 48);
                            g.drawImage(R4, hx - 8, hy - 4, 20);
                            g.setClip(0, 0, w, h);
                            g.setColor(100, 0, 255);
                            g.fillRect(70, 92, 8, 5);
                            g.setColor(175, 0, 255);
                            g.fillRect(70, 93, 8, 3);
                            g.setColor(242, 124, 255);
                            g.fillRect(70, 94, 8, 1);
                            break;

                        case 3: // '\003'
                            g.setClip(hx - 8, hy - 4, 48, 48);
                            g.drawImage(R4, hx - 8, hy - 4, 20);
                            g.setClip(0, 0, w, h);
                            g.setColor(100, 0, 255);
                            g.fillRect(70, 92, 25, 5);
                            g.setColor(175, 0, 255);
                            g.fillRect(70, 93, 25, 3);
                            g.setColor(242, 124, 255);
                            g.fillRect(70, 94, 25, 1);
                            break;

                        case 4: // '\004'

⌨️ 快捷键说明

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