📄 sevenyearitch$intro.java
字号:
paramGraphics.drawString("5: To pick up an", 18, 100, 20);
localDirectGraphics.fillTriangle(this.this$0.w / 2, 115, this.this$0.w / 2 - 4, 110, this.this$0.w / 2 + 4, 110, -16711936);
}
else if (this.this$0.xyI == 1)
{
localDirectGraphics.fillTriangle(this.this$0.w / 2, 35, this.this$0.w / 2 - 4, 40, this.this$0.w / 2 + 4, 40, -16711936);
paramGraphics.drawString("item and key 5 again ", 18, 50, 20);
paramGraphics.drawString("to throw it at the", 18, 60, 20);
paramGraphics.drawString("crosshair.", 18, 70, 20);
paramGraphics.drawString("Hint: Hit your", 18, 80, 20);
paramGraphics.drawString("opponent 7 times", 18, 90, 20);
paramGraphics.drawString("to progress to ", 18, 100, 20);
localDirectGraphics.fillTriangle(this.this$0.w / 2, 115, this.this$0.w / 2 - 4, 110, this.this$0.w / 2 + 4, 110, -16711936);
}
else if (this.this$0.xyI == 2)
{
localDirectGraphics.fillTriangle(this.this$0.w / 2, 35, this.this$0.w / 2 - 4, 40, this.this$0.w / 2 + 4, 40, -16711936);
paramGraphics.drawString("the next level. Score", 18, 50, 20);
paramGraphics.drawString("10 points for hitting", 18, 60, 20);
paramGraphics.drawString("your opponent. You ", 18, 70, 20);
paramGraphics.drawString("have 5 lives.", 18, 80, 20);
}
paramGraphics.setColor(16711680);
paramGraphics.drawString("© Mobile2win ", 30, 119, 20);
}
else if (this.this$0.a == 5)
{
this.this$0.loading = null;
this.this$0.Menubg(paramGraphics);
paramGraphics.drawImage(this.this$0.imgmenu, 10, 0, 20);
paramGraphics.setColor(16763904);
paramGraphics.setFont(Font.getFont(0, 1, 8));
paramGraphics.drawString("Top Score", getWidth() / 2, 40, 17);
paramGraphics.drawString((this.this$0.HighScoreDisplayDB() * 10) + " Points", getWidth() / 2, 65, 17);
paramGraphics.setColor(16711680);
paramGraphics.drawString("© Mobile2win", 30, 119, 20);
}
else if (this.this$0.a == 6)
{
this.this$0.loading = null;
paramGraphics.setColor(0, 0, 0);
paramGraphics.fillRect(0, 0, this.this$0.w, this.this$0.h);
this.this$0.Menubg(paramGraphics);
paramGraphics.drawImage(this.this$0.imgmenu, 10, 0, 20);
paramGraphics.setColor(16763904);
paramGraphics.setFont(Font.getFont(0, 1, 8));
paramGraphics.drawString("About", this.this$0.w / 2, 35, 17);
paramGraphics.drawString("Copyright", 18, 47, 20);
paramGraphics.drawString("©Mobile2win Ltd.For", 18, 57, 20);
paramGraphics.drawString("any enquiries,send an", 18, 67, 20);
paramGraphics.drawString("email to games@", 18, 77, 20);
paramGraphics.drawString("mobile2win.com", 18, 87, 20);
paramGraphics.drawString("www.mobile2win.com", 18, 97, 20);
paramGraphics.setColor(16711680);
paramGraphics.drawString("© Mobile2win", 30, 119, 20);
}
else if (this.this$0.a == 7)
{
this.this$0.loading = null;
this.this$0.destroyApp(false);
this.this$0.notifyDestroyed();
}
else if (this.this$0.a == 10)
{
this.this$0.gamePaint = 0;
if (this.this$0.gameend == 1)
{
this.this$0.PlayAgain();
this.this$0.gameend = 0;
}
this.this$0.display.setCurrent(this.this$0.obj);
}
}
public void scroll1()
{
if ((this.this$0.fire == 1) && (this.this$0.j == 5))
{
this.this$0.a = 2;
this.this$0.j = 0;
this.this$0.fire = 0;
}
else if ((this.this$0.fire == 1) && (this.this$0.a == 2) && (this.this$0.no == 1))
{
this.this$0.a = 10;
this.this$0.fire = 0;
}
else if ((this.this$0.fire == 1) && (this.this$0.a == 2) && (this.this$0.no == 2))
{
this.this$0.a = 3;
this.this$0.fire = 0;
}
else if ((this.this$0.fire == 1) && (this.this$0.a == 3) && (this.this$0.no == 2))
{
this.this$0.a = 2;
this.this$0.fire = 0;
}
else if ((this.this$0.fire == 1) && (this.this$0.a == 2) && (this.this$0.no == 3))
{
this.this$0.a = 4;
this.this$0.fire = 0;
}
else if ((this.this$0.fire == 1) && (this.this$0.a == 4) && (this.this$0.no == 3))
{
this.this$0.a = 2;
this.this$0.fire = 0;
}
else if ((this.this$0.fire == 1) && (this.this$0.a == 2) && (this.this$0.no == 4) && (this.this$0.sound == 0))
{
this.this$0.sound = 1;
this.this$0.fire = 0;
}
else if ((this.this$0.fire == 1) && (this.this$0.a == 2) && (this.this$0.no == 4) && (this.this$0.sound == 1))
{
this.this$0.sound = 0;
this.this$0.fire = 0;
}
else if ((this.this$0.fire == 1) && (this.this$0.a == 2) && (this.this$0.no == 5))
{
this.this$0.a = 5;
this.this$0.fire = 0;
}
else if ((this.this$0.fire == 1) && (this.this$0.a == 5) && (this.this$0.no == 5))
{
this.this$0.a = 2;
this.this$0.fire = 0;
}
else if ((this.this$0.fire == 1) && (this.this$0.a == 2) && (this.this$0.no == 6))
{
this.this$0.a = 6;
this.this$0.fire = 0;
}
else if ((this.this$0.fire == 1) && (this.this$0.a == 6) && (this.this$0.no == 6))
{
this.this$0.a = 2;
this.this$0.fire = 0;
}
else if ((this.this$0.fire == 1) && (this.this$0.a == 2) && (this.this$0.no == 7))
{
this.this$0.a = 7;
}
repaint();
}
public void keyPressed()
{
switch (getGameAction(paramInt))
{
case 1:
if (this.this$0.a == 2)
{
if (this.this$0.selectno > 1)
{
this.this$0.selectno -= 1;
this.this$0.selecty -= 12;
}
if (this.this$0.selectno <= 1)
this.this$0.selectno = 1;
this.this$0.no -= 1;
if (this.this$0.no < 1)
{
this.this$0.fire = 0;
this.this$0.selecty = 102;
this.this$0.selectno = 7;
this.this$0.no = 7;
}
}
if (this.this$0.a == 3)
{
this.this$0.xy -= 1;
if (this.this$0.xy <= 0)
this.this$0.xy = 0;
}
if (this.this$0.a != 4)
return;
this.this$0.xyI -= 1;
if (this.this$0.xyI > 0)
return;
this.this$0.xyI = 0;
break;
case 6:
if (this.this$0.a == 2)
{
if (this.this$0.selectno <= 6)
{
this.this$0.selectno += 1;
this.this$0.selecty += 12;
}
this.this$0.no += 1;
if (this.this$0.no > 7)
{
this.this$0.fire = 0;
this.this$0.selecty = 30;
this.this$0.selectno = 1;
this.this$0.no = 1;
}
}
if (this.this$0.a == 3)
{
this.this$0.xy += 1;
if (this.this$0.xy >= 1)
this.this$0.xy = 1;
}
if (this.this$0.a != 4)
return;
this.this$0.xyI += 1;
if (this.this$0.xyI < 2)
return;
this.this$0.xyI = 2;
break;
case 8:
if (this.this$0.fire != 0)
return;
this.this$0.fire = 1;
break;
default:
if ((paramInt != -6) || (this.this$0.fire != 0))
return;
this.this$0.fire = 1;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -