📄 arkonwarriors.java
字号:
act = "stand";
if(fight == 1 && mov != "def")
{
mov = "hit";
mfre = 0;
}
break;
}
}
if(player == 1 && invi == 0)
{
if(level == 3 && mode == 1)
hx = 20;
else
hx = 20;
if(act == "die")
switch(mfr)
{
case 0: // '\0'
g.setClip(hx, hy, 18, 41);
g.drawImage(A1, hx - 60, hy, 20);
break;
case 2: // '\002'
g.setClip(hx, hy, 18, 41);
g.drawImage(A1, hx - 60, hy, 20);
break;
case 4: // '\004'
g.setClip(hx, hy, 18, 41);
g.drawImage(A1, hx - 60, hy, 20);
break;
case 6: // '\006'
g.setClip(hx, hy, 18, 41);
g.drawImage(A1, hx - 60, hy, 20);
break;
case 8: // '\b'
g.setClip(hx, hy, 18, 41);
g.drawImage(A1, hx - 60, hy, 20);
break;
case 9: // '\t'
g.setClip(hx, hy, 18, 41);
g.drawImage(A1, hx - 60, hy, 20);
End();
break;
}
if(act == "hit")
switch(mfr)
{
case 0: // '\0'
g.setClip(hx, hy, 18, 41);
g.drawImage(A1, hx - 60, 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, 15, 15, 0, 360);
break;
case 1: // '\001'
g.setClip(hx, hy, 18, 41);
g.drawImage(A1, hx - 60, hy, 20);
act = "stand";
alife--;
mfr = 0;
break;
}
else
if(act == "def1")
{
if(deff == 1)
{
g.setClip(hx, hy, 20, 20);
g.drawImage(gorilla, hx - 88, hy, 20);
deff = 0;
}
g.setClip(hx - 11, hy - 10, 27, 50);
g.drawImage(A4, hx - 94 - 11, hy - 10, 20);
if(down == 0)
act = "stand";
} else
if(act == "def2")
{
if(deff == 1)
{
g.setClip(hx, hy, 20, 20);
deff = 0;
}
g.setClip(hx - 11, hy - 5, 28, 50);
g.drawImage(A4, hx - 65 - 11, hy - 5, 20);
if(down == 0)
act = "stand";
} else
if(act == "stand")
{
if(mode == 0 || mode == 3)
{
g.setClip(hx - 5, hy, 13, 41);
g.drawImage(A1, hx - 5, hy, 20);
}
if(mode == 1)
{
g.setClip(hx - 5, hy, 30, 42);
g.drawImage(A3, hx - 5, hy, 20);
}
} else
if(act == "walk")
{
switch(mfr)
{
case 0: // '\0'
g.setClip(hx - 5, hy, 21, 57);
X -= 3;
g.drawImage(A1, hx - 13 - 5, hy, 20);
break;
case 1: // '\001'
g.setClip(hx - 10, hy, 26, 41);
X -= 3;
g.drawImage(A1, hx - 33 - 10, hy, 20);
break;
case 2: // '\002'
g.setClip(hx - 7, hy, 21, 41);
X -= 3;
g.drawImage(A2, hx - 7, hy, 20);
break;
case 3: // '\003'
g.setClip(hx - 5, hy, 18, 41);
X -= 3;
g.drawImage(A2, hx - 21 - 5, hy, 20);
break;
case 4: // '\004'
g.setClip(hx - 10, hy, 27, 41);
X -= 3;
g.drawImage(A2, hx - 39 - 10, hy, 20);
break;
case 5: // '\005'
g.setClip(hx - 6, hy, 22, 41);
X -= 3;
g.drawImage(A2, hx - 66 - 6, hy, 20);
break;
case 6: // '\006'
g.setClip(hx - 5, hy, 21, 57);
X -= 3;
g.drawImage(A1, hx - 13 - 5, hy, 20);
act = "stand";
mfr = 0;
break;
}
if(rt == 1)
{
act = "walk";
} else
{
act = "stand";
mfr = 0;
}
} else
if(act == "jump")
switch(mfr)
{
case 0: // '\0'
g.setClip(hx, hy, 18, 41);
g.drawImage(A1, hx - 60, hy, 20);
break;
case 1: // '\001'
g.setClip(hx - 5, hy - 3, 18, 41);
X -= 5;
g.drawImage(A2, hx - 21 - 5, hy - 3, 20);
break;
case 2: // '\002'
g.setClip(hx - 10, hy - 5, 27, 41);
X -= 5;
g.drawImage(A2, hx - 39 - 10, hy - 5, 20);
break;
case 3: // '\003'
g.setClip(hx - 6, hy - 3, 22, 41);
X -= 4;
g.drawImage(A2, hx - 66 - 6, hy - 3, 20);
break;
case 4: // '\004'
g.setClip(hx, hy, 18, 41);
g.drawImage(A1, hx - 60, hy, 20);
act = "stand";
break;
}
else
if(act == "att1")
switch(mfr)
{
case 0: // '\0'
g.setClip(hx - 2, hy - 2, 30, 42);
g.drawImage(A3, hx - 31 - 2, hy - 2, 20);
break;
case 1: // '\001'
g.setClip(hx - 2, hy - 2, 52, 42);
g.drawImage(A3, hx - 61 - 2, hy - 2, 20);
if(fight == 1)
{
mov = "hit";
mfre = 0;
}
break;
case 2: // '\002'
g.setClip(hx - 5, hy - 2, 30, 42);
g.drawImage(A3, hx - 31 - 5, hy - 2, 20);
break;
case 3: // '\003'
g.setClip(hx - 7, hy - 2, 30, 42);
g.drawImage(A3, hx - 7, hy - 2, 20);
act = "stand";
mfr = 0;
break;
}
else
if(act == "att2")
switch(mfr)
{
case 0: // '\0'
g.setClip(hx - 2, hy - 9, 22, 49);
g.drawImage(A4, hx - 2, hy - 9, 20);
break;
case 1: // '\001'
g.setClip(hx - 2, hy - 9, 40, 49);
g.drawImage(A4, hx - 26 - 2, hy - 9, 20);
break;
case 2: // '\002'
g.setClip(hx - 2, hy - 9, 27, 49);
g.drawImage(A4, hx - 65 - 2, hy - 9, 20);
if(fight == 1)
{
mov = "hit";
mfre = 0;
}
break;
case 3: // '\003'
g.setClip(hx, hy - 2, 30, 42);
g.drawImage(A3, hx - 31, hy - 2, 20);
act = "stand";
mfr = 0;
break;
}
else
if(act == "att3")
switch(mfr)
{
case 0: // '\0'
g.setClip(hx, hy, 22, 41);
g.drawImage(A1, hx - 78, hy, 20);
g.setClip(hx + 20, hy + 8, 8, 10);
g.drawImage(aviz, (hx + 20) - 45, hy + 8, 20);
break;
case 1: // '\001'
g.setClip(hx, hy, 28, 41);
g.drawImage(A1, hx - 100, hy, 20);
g.setClip(hx + 20, hy + 8, 15, 10);
g.drawImage(aviz, (hx + 20) - 38, hy + 8, 20);
break;
case 2: // '\002'
g.setClip(hx, hy, 28, 41);
g.drawImage(A1, hx - 100, hy, 20);
g.setClip(hx + 20, hy + 8, 35, 10);
g.drawImage(aviz, (hx + 20) - 18, hy + 8, 20);
nof--;
if(level == 1)
{
go[2][eno]--;
if(--go[2][eno] <= 0)
{
mov = "die";
mfre = 0;
mode = 0;
fight = 0;
}
}
if(level == 2)
{
bu[2][eno]--;
if(--bu[2][eno] <= 0)
{
mov = "die";
mfre = 0;
mode = 0;
fight = 0;
}
}
if(level == 3)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -