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

📄 msgbox.java

📁 一个类似打地鼠的j2me手机游戏。
💻 JAVA
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 

import java.io.IOException;
import javax.microedition.lcdui.*;

public class MsgBox extends Canvas
{

    static int mT;
    static int stgNum;
    static int mscore;
    static int life;
    Image hg;

    public MsgBox()
    {
        mT = 0;
        stgNum = 0;
        mscore = 0;
        life = 0;
        try
        {
            hg = Image.createImage("/heart.png");
        }
        catch(IOException _ex) { }
    }

    public void paint(Graphics g)
    {
        g.setColor(0xffffff);
        g.fillRect(0, 0, 90, 100);
        g.setColor(0x191970);
        if(mT == 0)
        {
            if(stgNum == 6)
                g.drawString("Final Stage", 19, 50, 20);
            else
                g.drawString("Stage " + stgNum, 26, 50, 20);
        } else
        if(mT == 1)
        {
            g.drawImage(hg, 10, 19, 20);
            g.drawString(" x " + life, 23, 19, 20);
            g.drawString("Bonus 10 x " + life, 15, 60, 20);
            g.drawString(10 * life + " point!", 25, 75, 20);
        }
    }
}

⌨️ 快捷键说明

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